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/calcurse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index ca239fb..d3b1d03 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -68,7 +68,7 @@ main (int argc, char **argv) int non_interactive; int no_data_file = 1; int cut_item = 0; - char *quit_message = _("Do you really want to quit ?"); + const char *quit_message = _("Do you really want to quit ?"); char choices[] = "[y/n] "; int count; -- cgit v1.2.3