changeset 5980:b32c7be57669 libavformat

Fix off-by-1 error in the tag parsing code.
author jai_menon
date Thu, 22 Apr 2010 12:54:50 +0000
parents 6ac06c16fb75
children c1cd2ffd5cdc
files id3v2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/id3v2.c	Thu Apr 22 09:04:33 2010 +0000
+++ b/id3v2.c	Thu Apr 22 12:54:50 2010 +0000
@@ -127,7 +127,7 @@
         break;
 
     case 3:  /* UTF-8 */
-        len = FFMIN(taglen, dstlen - 1);
+        len = FFMIN(taglen, dstlen);
         get_buffer(s->pb, dst, len);
         dst[len] = 0;
         break;