Mercurial > mplayer.hg
diff playtreeparser.c @ 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 | 4cabf7499fef |
children | 29a3bb75db47 |
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