summaryrefslogtreecommitdiffstats
path: root/apps/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menu.c b/apps/menu.c
index aff84c72e3..f6d0ef967d 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -321,7 +321,7 @@ void do_setting_from_menu(const struct menu_item_ex *temp,
while (i < MAX_PATH-1)
{
int padlen = MIN(len, MAX_PATH-1-i);
- strncpy(&padded_title[i], title, padlen);
+ strlcpy(&padded_title[i], title, padlen);
i += padlen;
if (i<MAX_PATH-1)
padded_title[i++] = ' ';