diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-03-27 21:49:37 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2024-03-28 20:13:05 +0100 |
commit | ef6658c22d2f8a897026b55f90cdb0b82dd36360 (patch) | |
tree | 9c6c21fdf8e9168d721f31784e5309efed9b9af5 | |
parent | e743952c1b778b04e0cadfb0770afb0c3c0525bc (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |