Commit f388645a authored by michael's avatar michael

sprintf->snprintf


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3824 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bb934625
...@@ -337,7 +337,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, ...@@ -337,7 +337,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
FILE *f; FILE *f;
char fname[256]; 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"); f = fopen(fname, "w");
if (f) { if (f) {
fprintf(f, "P6 %d %d 255\n", width, height); fprintf(f, "P6 %d %d 255\n", width, height);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment