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

* commit '6d34343263d890114410fafc85885501eca8d3d6':
  Fix issue #18000467: processgroup truncates buffer
This commit is contained in:
Dianne Hackborn 2014-10-15 23:25:11 +00:00 committed by Android Git Automerger
commit 1a27d6ab32
1 changed files with 1 additions and 1 deletions

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