avformat/cinedec: remove redundant zero termination
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 5 Apr 2014 21:00:23 +0000 (23:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 5 Apr 2014 21:00:23 +0000 (23:00 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/cinedec.c

index d3e3e1b..5e16032 100644 (file)
@@ -75,7 +75,6 @@ static int set_metadata_int(AVDictionary **dict, const char *key, int value)
     if (value) {
         char buf[64];
         snprintf(buf, sizeof(buf), "%i", value);
-        buf[sizeof(buf) - 1] = 0;
         return av_dict_set(dict, key, buf, 0);
     }
     return 0;