Fixed a buffer length problem in kbd_input()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8701 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0013e9526a
commit
57580224a4
1 changed files with 2 additions and 2 deletions
|
@ -85,9 +85,9 @@ int save_playlist_screen(struct playlist_info* playlist)
|
|||
|
||||
if (!filename || (len=strlen(filename)) <= 4 ||
|
||||
strcasecmp(&filename[len-4], ".m3u"))
|
||||
filename = DEFAULT_DYNAMIC_PLAYLIST_NAME;
|
||||
strcpy(filename, DEFAULT_DYNAMIC_PLAYLIST_NAME);
|
||||
|
||||
if (!kbd_input(filename, sizeof(filename)))
|
||||
if (!kbd_input(filename, sizeof(temp)))
|
||||
{
|
||||
playlist_save(playlist, filename);
|
||||
|
||||
|
|
Loading…
Reference in a new issue