From 29a6887af1f519ceed8121a11d4c2b131884898e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 23 Mar 2009 13:31:09 +0000 Subject: fixed insecure usage of snprintf svn path=/trunk/externals/zexy/; revision=10888 --- src/fwriteln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1