From 6dec4d3e47b1266b70fa490da2be5ed833a7c4d6 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Thu, 19 Sep 2019 15:42:48 +0100 Subject: [PATCH] tidy mutt_yesorno() --- curs_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curs_lib.c b/curs_lib.c index 5bad79026..7d22ed80c 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -387,8 +387,8 @@ enum QuadOption mutt_yesorno(const char *msg, enum QuadOption def) /* maxlen here is sort of arbitrary, so pick a reasonable upper bound */ trunc_msg_len = mutt_wstr_trunc( - msg, 4 * prompt_lines * MuttMessageWindow->cols, - prompt_lines * MuttMessageWindow->cols - answer_string_wid, NULL); + msg, (size_t) 4 * prompt_lines * MuttMessageWindow->cols, + ((size_t) prompt_lines * MuttMessageWindow->cols) - answer_string_wid, NULL); mutt_window_move(MuttMessageWindow, 0, 0); SET_COLOR(MT_COLOR_PROMPT); -- 2.40.0