diff options
author | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-08 22:43:35 +0000 |
---|---|---|
committer | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-08 22:43:35 +0000 |
commit | bb939e6c7bf178cef13e841c9a5794efb80108aa (patch) | |
tree | e50ccee9ecc2fbbcf8a027ffb557d8d43f5a0385 /playtreeparser.c | |
parent | 8021dffeda225f5286a19e2f508540819c5d8d36 (diff) | |
download | mpv-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.c | 2 |
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 |