fix forcing scrolling title like "Scroll Speed Setting Example".

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22081 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2009-07-29 13:35:00 +00:00
parent 38b08060af
commit f495488b08

View file

@ -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++] = ' ';