diff options
author | Berke Viktor <berkeviktor@aol.com> | 2012-01-08 23:48:46 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2012-01-08 23:48:46 +0100 |
commit | bca7e6c554fe2406004c25056160950a276208f7 (patch) | |
tree | affce10d5ffb06674f2208493591112526cbb9ed /src/common/outbound.c | |
parent | 774ff23920e1e2f3f2f23c7be3da27497c1b5df6 (diff) |
update xchat to r1499
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r-- | src/common/outbound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index 7c6e5e6a..c1270e96 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -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 */ |