summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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