From d69d940ddfc29daa3868e3b6944912721e75b383 Mon Sep 17 00:00:00 2001 From: FIRST_NAME LAST_NAME Date: Fri, 19 Nov 2021 10:37:05 +0100 Subject: [PATCH] cc: remove format warnings using size_t for length --- src/curses/ui_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/curses/ui_panel.c b/src/curses/ui_panel.c index 2d268de..bb1b72c 100644 --- a/src/curses/ui_panel.c +++ b/src/curses/ui_panel.c @@ -220,12 +220,12 @@ ui_draw_bindings(ui_t *ui, const char *keybindings[], int count) for (key = 0; key < count; key += 2) { wattron(ui->win, A_BOLD | COLOR_PAIR(CP_WHITE_ON_CYAN)); mvwprintw(ui->win, ui->height - 1, xpos, "%-*s", - strlen(keybindings[key]) + 1, keybindings[key]); + (int) strlen(keybindings[key]) + 1, keybindings[key]); xpos += strlen(keybindings[key]) + 1; wattroff(ui->win, A_BOLD | COLOR_PAIR(CP_WHITE_ON_CYAN)); wattron(ui->win, COLOR_PAIR(CP_BLACK_ON_CYAN)); mvwprintw(ui->win, ui->height - 1, xpos, "%-*s", - strlen(keybindings[key + 1]) + 1, keybindings[key + 1]); + (int) strlen(keybindings[key + 1]) + 1, keybindings[key + 1]); wattroff(ui->win, COLOR_PAIR(CP_BLACK_ON_CYAN)); xpos += strlen(keybindings[key + 1]) + 3; }