liblog: logcat color output corrupted on 32-bit

sizeof(suffixBuf), not sizeof(suffixLen)!

Change-Id: I6e085089237585bb8b406372639b644556747699
This commit is contained in:
Mark Salyzyn 2015-01-22 10:00:04 -08:00
parent d426a4e7b6
commit e2428429e0

View file

@ -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 */