summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'liblog/logprint.c')
-rw-r--r--liblog/logprint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/liblog/logprint.c b/liblog/logprint.c
index a2839bfb6..7937cb1c5 100644
--- a/liblog/logprint.c
+++ b/liblog/logprint.c
@@ -1632,8 +1632,10 @@ LIBLOG_ABI_PUBLIC char* android_log_formatLogLine(AndroidLogFormat* p_format,
1632 prefixLen = snprintf(prefixBuf, sizeof(prefixBuf), "\x1B[38;5;%dm", 1632 prefixLen = snprintf(prefixBuf, sizeof(prefixBuf), "\x1B[38;5;%dm",
1633 colorFromPri(entry->priority)); 1633 colorFromPri(entry->priority));
1634 prefixLen = MIN(prefixLen, sizeof(prefixBuf)); 1634 prefixLen = MIN(prefixLen, sizeof(prefixBuf));
1635 suffixLen = snprintf(suffixBuf, sizeof(suffixBuf), "\x1B[0m"); 1635
1636 suffixLen = MIN(suffixLen, sizeof(suffixBuf)); 1636 const char suffixContents[] = "\x1B[0m";
1637 strcpy(suffixBuf, suffixContents);
1638 suffixLen = strlen(suffixContents);
1637 } 1639 }
1638 1640
1639 char uid[16]; 1641 char uid[16];