changeset 22477:e305132d083b

100l, allocated buffer was too small. From a patch by Nicholas Kain
author rtogni
date Thu, 08 Mar 2007 22:43:35 +0000
parents 50225df605b5
children 3501ae650b23
files playtreeparser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Thu Mar 08 22:29:00 2007 +0000
+++ b/playtreeparser.c	Thu Mar 08 22:43:35 2007 +0000
@@ -500,7 +500,7 @@
         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