changeset 3539:4dee13c8073a libavformat

All id3 parsers are buggy, 0 termination fix 1 of n (issue created by andreas and found by reimar) fix is from reimar + cosmetics by me.
author michael
date Fri, 04 Jul 2008 22:00:35 +0000
parents e50efb387048
children 3dfb35d2ac51
files mp3.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mp3.c	Fri Jul 04 13:05:06 2008 +0000
+++ b/mp3.c	Fri Jul 04 22:00:35 2008 +0000
@@ -185,6 +185,8 @@
     char *q;
     int len;
 
+    if(dstlen > 0)
+        dst[0]= 0;
     if(taglen < 1)
         return;