mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
helpers.c:printv() - Iterate over size of buffer
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ void printv(const char *fmt, va_list ap)
|
||||
|
||||
len = strlen(buf);
|
||||
buf[len++] = ' ';
|
||||
for (int i = (int)len; i < (SCREEN_WIDTH - 8); i++)
|
||||
for (size_t i = len; i < (sizeof(buf) - 8); i++)
|
||||
buf[i] = '.'; /* pad with dots. */
|
||||
|
||||
fprintf(stderr, "\r%s ", buf);
|
||||
|
||||
Reference in New Issue
Block a user