summaryrefslogtreecommitdiffstats
path: root/playtreeparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'playtreeparser.c')
-rw-r--r--playtreeparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/playtreeparser.c b/playtreeparser.c
index 04d7c96537..21da6f6752 100644
--- a/playtreeparser.c
+++ b/playtreeparser.c
@@ -107,6 +107,7 @@ play_tree_parser_get_line(play_tree_parser_t* p) {
if(end[0] != '\0') {
p->buffer_end -= end-p->iter;
memmove(p->buffer,end,p->buffer_end);
+ p->buffer[p->buffer_end] = '\0';
} else
p->buffer_end = 0;
p->iter = p->buffer;