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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user