Mark localized string literals constant

Translated strings returned by gettext() are statically allocated and
shouldn't be modified.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-04-05 21:36:54 +02:00
parent 516a793375
commit 80f7e8ead5
12 changed files with 89 additions and 89 deletions

View File

@@ -628,10 +628,10 @@ calendar_change_day (int datefmt)
char outstr[BUFSIZ];
int dday, dmonth, dyear;
int wrong_day = 1;
char *mesg_line1 =
const char *mesg_line1 =
_("The day you entered is not valid "
"(should be between 01/01/1902 and 12/31/2037)");
char *mesg_line2 = _("Press [ENTER] to continue");
const char *mesg_line2 = _("Press [ENTER] to continue");
char *request_date = "Enter the day to go to [ENTER for today] : %s";
while (wrong_day)