projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fc8ea2
)
sprintf->snprintf
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 12 Jan 2005 01:02:13 +0000
(
01:02
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 12 Jan 2005 01:02:13 +0000
(
01:02
+0000)
Originally committed as revision 3824 to svn://svn.ffmpeg.org/ffmpeg/trunk
vhook/fish.c
patch
|
blob
|
blame
|
history
diff --git
a/vhook/fish.c
b/vhook/fish.c
index
0a64188
..
c710526
100644
(file)
--- 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];
- s
printf(fname
, "%s/fishimg%ld_%lld.ppm", ci->dir, time(0), pts);
+ s
nprintf(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);