diff options
| author | Nils Wallménius <nils@rockbox.org> | 2010-08-21 16:14:18 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2010-08-21 16:14:18 +0000 |
| commit | f30add4dc08fe63b8417a4e63203649a3434d0f4 (patch) | |
| tree | 5f4b21a74a903f7858808b6c6b5d0cd6600f6243 | |
| parent | 6cc0a93c3c5f2036d995a1a2eec3316828b8dfe3 (diff) | |
| download | rockbox-f30add4dc08fe63b8417a4e63203649a3434d0f4.zip rockbox-f30add4dc08fe63b8417a4e63203649a3434d0f4.tar.gz rockbox-f30add4dc08fe63b8417a4e63203649a3434d0f4.tar.bz2 rockbox-f30add4dc08fe63b8417a4e63203649a3434d0f4.tar.xz | |
Safeguard against possible stack corruption when the string in the tempbuffer is as long as the buffer and strcat adds a char.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27854 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/menus/playlist_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menus/playlist_menu.c b/apps/menus/playlist_menu.c index 2237761..a47c3b1 100644 --- a/apps/menus/playlist_menu.c +++ b/apps/menus/playlist_menu.c @@ -41,7 +41,7 @@ int save_playlist_screen(struct playlist_info* playlist) char temp[MAX_PATH+1]; int len; - playlist_get_name(playlist, temp, sizeof(temp)); + playlist_get_name(playlist, temp, sizeof(temp)-1); len = strlen(temp); if (len > 4 && !strcasecmp(&temp[len-4], ".m3u")) |