Mercurial > libavcodec.hg
comparison imgresample.c @ 2423:87b7fbed8609 libavcodec
dissallow sprintf
author | michael |
---|---|
date | Wed, 12 Jan 2005 00:59:42 +0000 |
parents | 18b8b2dcc037 |
children | 40765c51a7a9 |
comparison
equal
deleted
inserted
replaced
2422:18b8b2dcc037 | 2423:87b7fbed8609 |
---|---|
728 dump_filter(&s->h_filters[0][0]); | 728 dump_filter(&s->h_filters[0][0]); |
729 component_resample(s, img1, xsize, xsize, ysize, | 729 component_resample(s, img1, xsize, xsize, ysize, |
730 img + 50 * XSIZE, XSIZE, XSIZE, YSIZE - 100); | 730 img + 50 * XSIZE, XSIZE, XSIZE, YSIZE - 100); |
731 img_resample_close(s); | 731 img_resample_close(s); |
732 | 732 |
733 sprintf(buf, "/tmp/out%d.pgm", i); | 733 snprintf(buf, sizeof(buf), "/tmp/out%d.pgm", i); |
734 save_pgm(buf, img1, xsize, ysize); | 734 save_pgm(buf, img1, xsize, ysize); |
735 } | 735 } |
736 | 736 |
737 /* mmx test */ | 737 /* mmx test */ |
738 #ifdef HAVE_MMX | 738 #ifdef HAVE_MMX |