From dae282cd7c9e7548a79638e46e1a3da4bac01af9 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Mon, 8 Jan 2007 11:01:24 +0000 Subject: [PATCH] Fix NULL pointer issue in mutt_format_string(). --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index 21449ab9..e8393b17 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); } -- 2.50.1