am 67f46cb0: Fix issue #18000467: processgroup truncates buffer

* commit '67f46cb0e137edbf4a6f7014ca8a3a58484016d1':
  Fix issue #18000467: processgroup truncates buffer
This commit is contained in:
Dianne Hackborn 2014-10-15 19:22:09 +00:00 committed by Android Git Automerger
commit 0f773c83cb

View file

@ -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));