Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67f46cb0 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #18000467: processgroup truncates buffer

Change-Id: I3d98a4da9c47d83d25a11ff0ef94cfcab1feabea
parent 2c5e7e10
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -99,7 +99,7 @@ static int refillBuffer(struct ctx *ctx)
    }
    }


    ctx->buf_len += ret;
    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);
    SLOGV("Read %d to buffer: %s", ret, ctx->buf);


    assert(ctx->buf_len <= sizeof(ctx->buf));
    assert(ctx->buf_len <= sizeof(ctx->buf));