From 1828a753a8a62a8ad94fdf32b7c4406eb43bb608 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 25 Jul 2010 14:29:06 +0000 Subject: [PATCH] Use MAX_PATH for array used for filename. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27547 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/settings.c b/apps/settings.c index 2f6ce4cb92..abc1d6af93 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -773,8 +773,6 @@ void sound_settings_apply(void) void settings_apply(bool read_disk) { - - char buf[64]; #ifdef HAVE_LCD_BITMAP int rc; #endif @@ -868,6 +866,7 @@ void settings_apply(bool read_disk) if (read_disk) { + char buf[MAX_PATH]; #ifdef HAVE_LCD_BITMAP /* fonts need to be loaded before the WPS */ if (global_settings.font_file[0]