summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/main_menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index ff09568509..3eb1d69fb5 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -138,8 +138,7 @@ extern bool simulate_usb(void);
138bool show_info(void) 138bool show_info(void)
139{ 139{
140 char s[32], s2[32]; 140 char s[32], s2[32];
141 /* avoid overflow for 8MB mod :) was: ((mp3end - mp3buf) * 1000) / 0x100000; */ 141 long buflen = ((mp3end - mp3buf) * 2) / 2097; /* avoid overflow */
142 long buflen = ((mp3end - mp3buf) * 100) / 0x19999;
143 int integer, decimal; 142 int integer, decimal;
144 bool done = false; 143 bool done = false;
145 int key; 144 int key;