summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-03-27 21:49:37 +0100
committercgzones <cgzones@googlemail.com>2024-03-28 20:13:05 +0100
commitef6658c22d2f8a897026b55f90cdb0b82dd36360 (patch)
tree9c6c21fdf8e9168d721f31784e5309efed9b9af5
parente743952c1b778b04e0cadfb0770afb0c3c0525bc (diff)
Simplify string formatting
Just call RichString_appendAscii() with the fixed string and avoid an superfluous snprintf() formatting. Suggested-by: Explorer09
-rw-r--r--Row.c3
1 files changed, 1 insertions, 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;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy