diff options
author | Berke Viktor <berkeviktor@aol.com> | 2012-01-08 23:57:46 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2012-01-08 23:57:46 +0100 |
commit | 34dace46af811259dd790e599be35afd1ae219d8 (patch) | |
tree | fe2605910e556b7489a9b130bd3ceecb76e7a0c1 /src/common/outbound.c | |
parent | 18404054b0e7bad84c552530fa5771f38469f2d3 (diff) | |
parent | bca7e6c554fe2406004c25056160950a276208f7 (diff) |
Merge branch 'master' into wdk
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 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 */ |