diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-03-23 13:31:09 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-03-23 13:31:09 +0000 |
commit | 29a6887af1f519ceed8121a11d4c2b131884898e (patch) | |
tree | 06d48576d3b1b1ecf2c55dd506fd8086c5d3a692 | |
parent | 7a060ad46daa6d37ec5ec37b42cf59a6146c5203 (diff) |
fixed insecure usage of snprintf
svn path=/trunk/externals/zexy/; revision=10888
-rw-r--r-- | src/fwriteln.c | 2 |
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); |