# HG changeset patch # User rtogni # Date 1173393815 0 # Node ID e305132d083bf58fdaa887e6edf08ec6b7a3c675 # Parent 50225df605b5a561d82271bc1062e5109f8c46b5 100l, allocated buffer was too small. From a patch by Nicholas Kain diff -r 50225df605b5 -r e305132d083b playtreeparser.c --- 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