diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-05 21:36:54 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-05 22:18:46 +0200 |
commit | 80f7e8ead55ee85a364c98db64c21d70a34d1dc1 (patch) | |
tree | d8c6d909ada1c0c4c85533a0d1687d0ccdffb17e /src/calendar.c | |
parent | 516a793375424ea2bbdc891bf0c917a8f7b388a1 (diff) | |
download | calcurse-80f7e8ead55ee85a364c98db64c21d70a34d1dc1.zip |
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>
Diffstat (limited to 'src/calendar.c')
-rw-r--r-- | src/calendar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calendar.c b/src/calendar.c index 197291b..7ef7f0f 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -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) |