mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
update xchat to r1499
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user