changeset 28184:0fb5551413f7

1000l, play_tree_parser_stop_keeping broke 0-termination of buffer
author reimar
date Thu, 01 Jan 2009 09:47:21 +0000
parents b197740bf718
children a3ec147048ce
files playtreeparser.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Thu Jan 01 09:37:02 2009 +0000
+++ b/playtreeparser.c	Thu Jan 01 09:47:21 2009 +0000
@@ -133,6 +133,7 @@
     p->buffer_end -= p->iter -p->buffer;
     if(p->buffer_end)
       memmove(p->buffer,p->iter,p->buffer_end);
+    p->buffer[p->buffer_end] = 0;
     p->iter = p->buffer;
   }
 }