summaryrefslogtreecommitdiffstats
path: root/apps/menu.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-07-29 13:35:00 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-07-29 13:35:00 +0000
commitf495488b08f802d9e4d957ea4499d8977c8bdccc (patch)
tree5ccaed3ca15474011497c04fa39b5dffc9bd1a55 /apps/menu.c
parent38b08060afdf06e4e057c8b089acdb63624294fd (diff)
downloadrockbox-f495488b08f802d9e4d957ea4499d8977c8bdccc.tar.gz
rockbox-f495488b08f802d9e4d957ea4499d8977c8bdccc.tar.bz2
rockbox-f495488b08f802d9e4d957ea4499d8977c8bdccc.zip
fix forcing scrolling title like "Scroll Speed Setting Example".
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22081 a1c6a512-1295-4272-9138-f99709370657
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,
icon = Icon_Submenu_Entered;
else
icon = menu->callback_and_desc->icon_id;
- gui_synclist_set_title(lists, P2STR(menu->callback_and_desc->desc), icon);
+ gui_synclist_set_title(lists, P2STR(menu->callback_and_desc->desc), icon);
gui_synclist_set_icon_callback(lists, menu_get_icon);
#else
(void)icon;
@@ -320,7 +320,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);
- strlcpy(&padded_title[i], title, padlen);
+ memcpy(&padded_title[i], title, padlen);
i += padlen;
if (i<MAX_PATH-1)
padded_title[i++] = ' ';