From ef6658c22d2f8a897026b55f90cdb0b82dd36360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 27 Mar 2024 21:49:37 +0100 Subject: Simplify string formatting Just call RichString_appendAscii() with the fixed string and avoid an superfluous snprintf() formatting. Suggested-by: Explorer09 --- Row.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Row.c b/Row.c index 846a353d..a175c9e3 100644 --- a/Row.c +++ b/Row.c @@ -340,8 +340,7 @@ void Row_printTime(RichString* str, unsigned long long totalHundredths, bool col if (totalHundredths == 0) { int shadowColor = coloring ? CRT_colors[PROCESS_SHADOW] : CRT_colors[PROCESS]; - len = xSnprintf(buffer, sizeof(buffer), " 0:00.00 "); - RichString_appendnAscii(str, shadowColor, buffer, len); + RichString_appendAscii(str, shadowColor, " 0:00.00 "); return; } -- cgit v1.2.3