summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 189b2ec35c..7ec803f585 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -146,11 +146,10 @@ static int browser(void* param)
146 int i; 146 int i;
147 for (i = 0; i < NUM_VOLUMES; i++) 147 for (i = 0; i < NUM_VOLUMES; i++)
148 { 148 {
149 char vol_string[VOL_ENUM_POS + 8]; 149 char vol_string[VOL_MAX_LEN + 1];
150 if (!volume_removable(i)) 150 if (!volume_removable(i))
151 continue; 151 continue;
152 /* VOL_NAMES contains a %d */ 152 get_volume_name(i, vol_string);
153 snprintf(vol_string, sizeof(vol_string), "/"VOL_NAMES, i);
154 /* test whether we would browse the external card */ 153 /* test whether we would browse the external card */
155 if (!volume_present(i) && 154 if (!volume_present(i) &&
156 (strstr(last_folder, vol_string) 155 (strstr(last_folder, vol_string)