summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 6690972e50..4b568a0ecc 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -208,7 +208,7 @@ static void init_menu_lists(const struct menu_item_ex *menu,
208 icon = Icon_Submenu_Entered; 208 icon = Icon_Submenu_Entered;
209 else 209 else
210 icon = menu->callback_and_desc->icon_id; 210 icon = menu->callback_and_desc->icon_id;
211 gui_synclist_set_title(lists, P2STR(menu->callback_and_desc->desc), icon); 211 gui_synclist_set_title(lists, P2STR(menu->callback_and_desc->desc), icon);
212 gui_synclist_set_icon_callback(lists, menu_get_icon); 212 gui_synclist_set_icon_callback(lists, menu_get_icon);
213#else 213#else
214 (void)icon; 214 (void)icon;
@@ -320,7 +320,7 @@ void do_setting_from_menu(const struct menu_item_ex *temp,
320 while (i < MAX_PATH-1) 320 while (i < MAX_PATH-1)
321 { 321 {
322 int padlen = MIN(len, MAX_PATH-1-i); 322 int padlen = MIN(len, MAX_PATH-1-i);
323 strlcpy(&padded_title[i], title, padlen); 323 memcpy(&padded_title[i], title, padlen);
324 i += padlen; 324 i += padlen;
325 if (i<MAX_PATH-1) 325 if (i<MAX_PATH-1)
326 padded_title[i++] = ' '; 326 padded_title[i++] = ' ';