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:
Linus Nielsen Feltzing 2006-02-16 14:38:34 +00:00
parent 0013e9526a
commit 57580224a4

View file

@ -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);