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

* commit '1a27d6ab328676bf648da74fe78836e7c1ffc8e2':
  Fix issue #18000467: processgroup truncates buffer
This commit is contained in:
Dianne Hackborn 2014-10-15 23:57:18 +00:00 committed by Android Git Automerger
commit e4f3805b29

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