update xchat to r1499

This commit is contained in:
Berke Viktor
2012-01-08 23:48:46 +01:00
parent 774ff23920
commit bca7e6c554
5 changed files with 5 additions and 9 deletions

View File

@@ -1716,7 +1716,7 @@ exec_data (GIOChannel *source, GIOCondition condition, struct nbexec *s)
rest = buf;
if (*rest) {
s->buffill = len - (rest - buf); /* = strlen(rest) */
s->linebuf = malloc(s->buffill);
s->linebuf = malloc(s->buffill + 1);
memcpy(s->linebuf, rest, s->buffill);
*rest = '\0';
len -= s->buffill; /* possibly 0 */