gui: Have km_keyname() return const.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 28 Apr 2020 19:56:38 +0000 (21:56 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 17 Sep 2020 15:43:02 +0000 (17:43 +0200)
We neither want the caller to write there nor to free the memory.

gui.c

diff --git a/gui.c b/gui.c
index a4f1717..0eb5444 100644 (file)
--- 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];