Fix issue #18000467: processgroup truncates buffer
Change-Id: I3d98a4da9c47d83d25a11ff0ef94cfcab1feabea
This commit is contained in:
parent
2c5e7e102b
commit
67f46cb0e1
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ static int refillBuffer(struct ctx *ctx)
|
|||
}
|
||||
|
||||
ctx->buf_len += ret;
|
||||
ctx->buf[ctx->buf_len-1] = 0;
|
||||
ctx->buf[ctx->buf_len] = 0;
|
||||
SLOGV("Read %d to buffer: %s", ret, ctx->buf);
|
||||
|
||||
assert(ctx->buf_len <= sizeof(ctx->buf));
|
||||
|
|
Loading…
Reference in a new issue