From 80f7e8ead55ee85a364c98db64c21d70a34d1dc1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 5 Apr 2012 21:36:54 +0200 Subject: Mark localized string literals constant Translated strings returned by gettext() are statically allocated and shouldn't be modified. Signed-off-by: Lukas Fleischer --- src/keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keys.c') diff --git a/src/keys.c b/src/keys.c index c41a0b3..c35cbeb 100644 --- a/src/keys.c +++ b/src/keys.c @@ -103,7 +103,7 @@ static struct keydef_s keydef[NBKEYS] = { static void dump_intro (FILE *fd) { - char *intro = + const char *intro = _("#\n" "# Calcurse keys configuration file\n#\n" "# This file sets the keybindings used by Calcurse.\n" -- cgit v1.2.3