summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-16 14:38:34 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-16 14:38:34 +0000
commit57580224a41506cdeed8cbe42694cb9e612c76fc (patch)
treec2d0e18d24a27c88cea3a0f9f8d8807e4f28bca2
parent0013e9526acb0e665e2be1700cc1ec2263e8e7e4 (diff)
downloadrockbox-57580224a41506cdeed8cbe42694cb9e612c76fc.tar.gz
rockbox-57580224a41506cdeed8cbe42694cb9e612c76fc.tar.bz2
rockbox-57580224a41506cdeed8cbe42694cb9e612c76fc.zip
Fixed a buffer length problem in kbd_input()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8701 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist_menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playlist_menu.c b/apps/playlist_menu.c
index c390e8077d..ba4a4fe0d2 100644
--- a/apps/playlist_menu.c
+++ b/apps/playlist_menu.c
@@ -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);