commit 4262629d5a888b0a84fb2cd8eadc77150fd20647
parent 8eb73cbcdc6c9f1486fba718435b1be8012f9bda
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Wed, 22 Jun 2022 11:07:46 +0200
fix(#12): use unsigned int
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/diary.c b/src/diary.c
@@ -184,7 +184,7 @@ void display_entry(const char* dir, size_t dir_size, const struct tm* date, WIND
// Three digit max rows for preview 999.
while (fgets(line, sizeof line, stdin) && row <= winy) {
// advance row number in indent
- sprintf(indent, "\033[%d;%dH", row++, ASIDE_WIDTH + CAL_WIDTH + 1);
+ sprintf(indent, "\033[%u;%uH", row++, ASIDE_WIDTH + CAL_WIDTH + 1);
entry_size = strlen(entry);
indent_size = strlen(indent);