From: Rocco Rutte Date: Mon, 8 Jan 2007 11:01:24 +0000 (+0000) Subject: Fix NULL pointer issue in mutt_format_string(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1aff0540df1d1a244e450a12bf61c42b06323676;p=neomutt Fix NULL pointer issue in mutt_format_string(). --- diff --git a/menu.c b/menu.c index 21449ab95..e8393b175 100644 --- a/menu.c +++ b/menu.c @@ -160,7 +160,7 @@ void menu_pad_string (char *s, size_t n) int shift = option (OPTARROWCURSOR) ? 3 : 0; int cols = COLS - shift; - mutt_format_string (s, n, cols, cols, 0, ' ', scratch, strlen (scratch), 1); + mutt_format_string (s, n, cols, cols, 0, ' ', scratch, mutt_strlen (scratch), 1); s[n - 1] = 0; FREE (&scratch); }