summaryrefslogtreecommitdiffstats
path: root/playtreeparser.c
diff options
context:
space:
mode:
authorrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-08 22:43:35 +0000
committerrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-08 22:43:35 +0000
commitbb939e6c7bf178cef13e841c9a5794efb80108aa (patch)
treee50ccee9ecc2fbbcf8a027ffb557d8d43f5a0385 /playtreeparser.c
parent8021dffeda225f5286a19e2f508540819c5d8d36 (diff)
downloadmpv-bb939e6c7bf178cef13e841c9a5794efb80108aa.tar.bz2
mpv-bb939e6c7bf178cef13e841c9a5794efb80108aa.tar.xz
100l, allocated buffer was too small.
From a patch by Nicholas Kain git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22495 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'playtreeparser.c')
-rw-r--r--playtreeparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/playtreeparser.c b/playtreeparser.c
index e94ea0fdc9..2af90ba2fb 100644
--- a/playtreeparser.c
+++ b/playtreeparser.c
@@ -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