From: Andre Noll Date: Tue, 28 Apr 2020 19:56:38 +0000 (+0200) Subject: gui: Have km_keyname() return const. X-Git-Tag: v0.6.3~10 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f3bd0c8d3d83ca34b21095831938cec915da5a41 gui: Have km_keyname() return const. We neither want the caller to write there nor to free the memory. --- 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];