diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index 8070a4a34d..6b1c4606e9 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -96,7 +96,7 @@ static void read_ttag(AVFormatContext *s, int taglen, const char *key) uint8_t tmp; PUT_UTF8(get_byte(s->pb), tmp, *q++ = tmp;) } - *q = '\0'; + *q = 0; break; case 3: /* UTF-8 */