Mercurial > libavcodec.hg
diff imgresample.c @ 2423:87b7fbed8609 libavcodec
dissallow sprintf
author | michael |
---|---|
date | Wed, 12 Jan 2005 00:59:42 +0000 |
parents | 18b8b2dcc037 |
children | 40765c51a7a9 |
line wrap: on
line diff
--- a/imgresample.c Wed Jan 12 00:16:25 2005 +0000 +++ b/imgresample.c Wed Jan 12 00:59:42 2005 +0000 @@ -730,7 +730,7 @@ img + 50 * XSIZE, XSIZE, XSIZE, YSIZE - 100); img_resample_close(s); - sprintf(buf, "/tmp/out%d.pgm", i); + snprintf(buf, sizeof(buf), "/tmp/out%d.pgm", i); save_pgm(buf, img1, xsize, ysize); }