summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-03-02 09:28:13 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-03-12 20:36:22 +0100
commit481cb5524f8e165bbe3c17bb04bdc7330dd7a923 (patch)
tree34c4c09613e40c82a9bab4b15685cad949d7ce1c /src/notify.c
parent0f4b45e62487e32e789571912fd2190168f753bc (diff)
downloadcalcurse-481cb5524f8e165bbe3c17bb04bdc7330dd7a923.zip
Do not strncpy() strings returned by gettext()
Translated strings returned by gettext() are statically allocated. There's no need to copy them to a buffer, we can use the pointers returned by gettext() instead. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notify.c b/src/notify.c
index 6529087..285238c 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -729,7 +729,7 @@ notify_config_bar (void)
clear ();
custom_set_swsiz (&cwin);
- strncpy (cwin.label, _("notification options"), BUFSIZ);
+ cwin.label = _("notification options");
wins_scrollwin_init (&cwin);
wins_show (cwin.win.p, cwin.label);
status_mesg (number_str, keys);