]> git.sesse.net Git - ffmpeg/commitdiff
remove unnecessary -1 from snprintf len
authorAndreas Öman <andreas@lonelycoder.com>
Wed, 14 Nov 2007 06:33:35 +0000 (06:33 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Wed, 14 Nov 2007 06:33:35 +0000 (06:33 +0000)
Originally committed as revision 11009 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mp3.c

index 540adfc19742930c113abd2ef6006ffc1df12f18..d6d5b2c4e321bb47bfc0ff7c7a59431b95884527 100644 (file)
@@ -585,7 +585,7 @@ static int mp3_write_header(struct AVFormatContext *s)
     char yeartxt[10];
 
     if(s->track)
-        snprintf(tracktxt, sizeof(tracktxt) - 1, "%d", s->track);
+        snprintf(tracktxt, sizeof(tracktxt)    , "%d", s->track);
     if(s->year)
         snprintf( yeartxt, sizeof(yeartxt)     , "%d", s->year );