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

Commit e2428429 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

liblog: logcat color output corrupted on 32-bit

sizeof(suffixBuf), not sizeof(suffixLen)!

Change-Id: I6e085089237585bb8b406372639b644556747699
parent d426a4e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -824,7 +824,7 @@ char *android_log_formatLogLine (
     * set the length at the maximum (size minus null byte)
     */
    prefixLen += MIN(len, sizeof(prefixBuf) - prefixLen);
    suffixLen = MIN(suffixLen, sizeof(suffixLen));
    suffixLen = MIN(suffixLen, sizeof(suffixBuf));

    /* the following code is tragically unreadable */