summaryrefslogtreecommitdiffstats
path: root/liblog/logprint.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-01-22 10:00:04 -0800
committerMark Salyzyn <salyzyn@google.com>2015-01-22 10:00:04 -0800
commite2428429e046dbe7ed8794e32bccdb34fa3bfde3 (patch)
treec4277e9a9eba140dae612b9a6c0c2126d396175c /liblog/logprint.c
parentd426a4e7b62c18124827868ddbf8987aa433451b (diff)
downloadcore-e2428429e046dbe7ed8794e32bccdb34fa3bfde3.tar.gz
core-e2428429e046dbe7ed8794e32bccdb34fa3bfde3.tar.bz2
core-e2428429e046dbe7ed8794e32bccdb34fa3bfde3.zip
liblog: logcat color output corrupted on 32-bit
sizeof(suffixBuf), not sizeof(suffixLen)! Change-Id: I6e085089237585bb8b406372639b644556747699
Diffstat (limited to 'liblog/logprint.c')
-rw-r--r--liblog/logprint.c2
1 files changed, 1 insertions, 1 deletions
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 */