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

Commit 5b0bf8ae authored by Greg Kaiser's avatar Greg Kaiser
Browse files

logcat: Fix buffer size

We need an additional byte for the NUL terminator in two
buffers.

Test: TreeHugger
Change-Id: I891f64fb29170c803da65743d6b911b69ce6e4f4
parent 33b07ba9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1230,7 +1230,7 @@ TEST(logcat, blocking_clear) {
        }

        int size, consumed, max, payload;
        char size_mult[3], consumed_mult[3];
        char size_mult[4], consumed_mult[4];
        size = consumed = max = payload = 0;
        if (6 == sscanf(buffer,
                        "events: ring buffer is %d %3s (%d %3s consumed),"