aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-03-23 13:31:09 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-03-23 13:31:09 +0000
commit29a6887af1f519ceed8121a11d4c2b131884898e (patch)
tree06d48576d3b1b1ecf2c55dd506fd8086c5d3a692
parent7a060ad46daa6d37ec5ec37b42cf59a6146c5203 (diff)
fixed insecure usage of snprintf
svn path=/trunk/externals/zexy/; revision=10888
-rw-r--r--src/fwriteln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fwriteln.c b/src/fwriteln.c
index 669c5ae..45e45ea 100644
--- a/src/fwriteln.c
+++ b/src/fwriteln.c
@@ -166,7 +166,7 @@ static void fwriteln_write (t_fwriteln *x, t_symbol *s, int argc, t_atom *argv)
argv++;
}
- snprintf(text,MAXPDSTRING,x->linebreak_chr);
+ snprintf(text,MAXPDSTRING,"%s", x->linebreak_chr);
length=strlen(text);
if (fwrite(text, length*sizeof(char),1,x->x_file) < 1) {
pd_error(x, "failed to write %128s",x->x_filename);