From e2428429e046dbe7ed8794e32bccdb34fa3bfde3 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Thu, 22 Jan 2015 10:00:04 -0800 Subject: [PATCH] liblog: logcat color output corrupted on 32-bit sizeof(suffixBuf), not sizeof(suffixLen)! Change-Id: I6e085089237585bb8b406372639b644556747699 --- liblog/logprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblog/logprint.c b/liblog/logprint.c index 59877828e..7ba4c8e78 100644 --- a/liblog/logprint.c +++ b/liblog/logprint.c @@ -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 */