Fix issue #18000467: processgroup truncates buffer

Change-Id: I3d98a4da9c47d83d25a11ff0ef94cfcab1feabea
This commit is contained in:
Dianne Hackborn 2014-10-15 11:36:28 -07:00
parent 2c5e7e102b
commit 67f46cb0e1

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