changeset 10694:5eb539aa5250

Fix the bug found by Martin Wulffeld
author albeu
date Mon, 25 Aug 2003 15:29:55 +0000
parents 7cf006b5a61c
children 879ce4016b34
files playtreeparser.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Mon Aug 25 13:45:45 2003 +0000
+++ b/playtreeparser.c	Mon Aug 25 15:29:55 2003 +0000
@@ -107,6 +107,7 @@
     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;