summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2012-01-08 23:57:46 +0100
committerBerke Viktor <berkeviktor@aol.com>2012-01-08 23:57:46 +0100
commit34dace46af811259dd790e599be35afd1ae219d8 (patch)
treefe2605910e556b7489a9b130bd3ceecb76e7a0c1 /src/common/outbound.c
parent18404054b0e7bad84c552530fa5771f38469f2d3 (diff)
parentbca7e6c554fe2406004c25056160950a276208f7 (diff)
Merge branch 'master' into wdk
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 8b0432ec..a09fdce4 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 */