diff mp3.c @ 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 31a0f3b99ef7
children 3dfb35d2ac51
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;