diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-03-02 09:28:13 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-03-12 20:36:22 +0100 |
commit | 481cb5524f8e165bbe3c17bb04bdc7330dd7a923 (patch) | |
tree | 34c4c09613e40c82a9bab4b15685cad949d7ce1c /src/help.c | |
parent | 0f4b45e62487e32e789571912fd2190168f753bc (diff) | |
download | calcurse-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/help.c')
-rw-r--r-- | src/help.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -168,7 +168,7 @@ help_wins_init (struct scrollwin *hwin, int x, int y, int h, int w) hwin->pad.h = BUFSIZ; hwin->pad.w = hwin->win.w - 2 * PADOFFSET + 1; - strncpy (hwin->label, _("Calcurse help"), BUFSIZ); + hwin->label = _("Calcurse help"); wins_scrollwin_init (hwin); wins_show (hwin->win.p, hwin->label); } |