From 481cb5524f8e165bbe3c17bb04bdc7330dd7a923 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 2 Mar 2012 09:28:13 +0100 Subject: 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 --- src/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/notify.c') 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); -- cgit v1.2.3-54-g00ecf