[MPlayer-cvslog] r22495 - trunk/playtreeparser.c
rtogni
subversion at mplayerhq.hu
Thu Mar 8 23:43:35 CET 2007
Author: rtogni
Date: Thu Mar 8 23:43:35 2007
New Revision: 22495
Modified:
trunk/playtreeparser.c
Log:
100l, allocated buffer was too small.
>From a patch by Nicholas Kain
Modified: trunk/playtreeparser.c
==============================================================================
--- trunk/playtreeparser.c (original)
+++ trunk/playtreeparser.c Thu Mar 8 23:43:35 2007
@@ -500,7 +500,7 @@ parse_smil(play_tree_parser_t* p) {
payload++;
// Skip ") at the end of the last line from the current packet
line[strlen(line)-2] = 0;
- line = realloc(line, strlen(line)+strlen(payload));
+ line = realloc(line, strlen(line)+strlen(payload)+1);
strcat (line, payload);
npkt++;
} else
More information about the MPlayer-cvslog
mailing list