# HG changeset patch # User aurel # Date 1233613034 0 # Node ID 10e0d8797a4333a6e722ecc1b0d378c1489aa836 # Parent 459c0242194e1b2458786c125b6f2c1c6060ee15 simplify usage of dstlen as it is not a parameter anymore diff -r 459c0242194e -r 10e0d8797a43 mp3.c --- a/mp3.c Mon Feb 02 22:14:28 2009 +0000 +++ b/mp3.c Mon Feb 02 22:17:14 2009 +0000 @@ -170,16 +170,14 @@ static void id3v2_read_ttag(AVFormatContext *s, int taglen, const char *key) { char *q, dst[512]; - int len, dstlen = sizeof(dst); + int len, dstlen = sizeof(dst) - 1; unsigned genre; - if(dstlen > 0) dst[0]= 0; if(taglen < 1) return; taglen--; /* account for encoding type byte */ - dstlen--; /* Leave space for zero terminator */ switch(get_byte(s->pb)) { /* encoding type */