summaryrefslogtreecommitdiffstats
path: root/id3v2/build/id3v2_malloc.patch
blob: f984689b941c8e8dcaeca4d0867f495baae10067 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- id3v2.cpp.orig	2004-05-04 20:30:15.000000000 +0200
+++ id3v2.cpp	2007-10-07 04:13:53.000000000 +0200
@@ -431,7 +431,7 @@
             if (*currentTrackNum == '/') 
             {
               newTrackNum = (char *)malloc(strlen(currentTrackNum) 
-                                   + strlen(frameList[ii].data)); 
+                                   + strlen(frameList[ii].data) + 2); 
               strcpy(newTrackNum, frameList[ii].data);
               strcat(newTrackNum, currentTrackNum);
             }