summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main_menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c
index ade84ba..0b51a79 100644
--- a/apps/main_menu.c
+++ b/apps/main_menu.c
@@ -156,7 +156,8 @@ extern unsigned char mp3end[];
bool show_info(void)
{
char s[32];
- int buflen = ((mp3end - mp3buf) * 1000) / 0x100000;
+ /* avoid overflow for 8MB mod :) was: ((mp3end - mp3buf) * 1000) / 0x100000; */
+ int buflen = ((mp3end - mp3buf) * 100) / 0x19999;
int integer, decimal;
bool done = false;
int key;