From f3bd0c8d3d83ca34b21095831938cec915da5a41 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 28 Apr 2020 21:56:38 +0200 Subject: [PATCH] gui: Have km_keyname() return const. We neither want the caller to write there nor to free the memory. --- gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.c b/gui.c index a4f1717c..0eb5444f 100644 --- a/gui.c +++ b/gui.c @@ -192,7 +192,7 @@ static bool curses_active(void) } /* taken from mutt */ -static char *km_keyname(int c) +static const char *km_keyname(int c) { static char buf[10]; -- 2.39.2