diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-12 00:59:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-12 00:59:42 +0000 |
commit | 2fc8ea249f325c2017137847bc1a565b77f40f11 (patch) | |
tree | 34f0783859f7637871650292705b657650f30800 /ffmpeg.c | |
parent | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 (diff) | |
download | ffmpeg-2fc8ea249f325c2017137847bc1a565b77f40f11.tar.gz |
dissallow sprintf
Originally committed as revision 3823 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -949,7 +949,7 @@ static void do_video_stats(AVFormatContext *os, AVOutputStream *ost, if (!fvstats) { today2 = time(NULL); today = localtime(&today2); - sprintf(filename, "vstats_%02d%02d%02d.log", today->tm_hour, + snprintf(filename, sizeof(filename), "vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min, today->tm_sec); fvstats = fopen(filename,"w"); |