diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-12 01:02:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-12 01:02:13 +0000 |
commit | 813af36b51679703fc0528d1d162bf8e49f090a5 (patch) | |
tree | 4aae5bab8e0ab86cd91ed75b9766997171b5880c /vhook/fish.c | |
parent | 2fc8ea249f325c2017137847bc1a565b77f40f11 (diff) | |
download | ffmpeg-813af36b51679703fc0528d1d162bf8e49f090a5.tar.gz |
sprintf->snprintf
Originally committed as revision 3824 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/fish.c')
-rw-r--r-- | vhook/fish.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vhook/fish.c b/vhook/fish.c index 0a6418834c..c710526b15 100644 --- a/vhook/fish.c +++ b/vhook/fish.c @@ -337,7 +337,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, FILE *f; char fname[256]; - sprintf(fname, "%s/fishimg%ld_%lld.ppm", ci->dir, time(0), pts); + snprintf(fname, sizeof(fname), "%s/fishimg%ld_%lld.ppm", ci->dir, time(0), pts); f = fopen(fname, "w"); if (f) { fprintf(f, "P6 %d %d 255\n", width, height); |