diff options
| author | Uwe Freese <thebreaker@rockbox.org> | 2003-01-18 18:21:13 +0000 |
|---|---|---|
| committer | Uwe Freese <thebreaker@rockbox.org> | 2003-01-18 18:21:13 +0000 |
| commit | bc8029ee59ff6aeb55d9f90cd943c3f331c69301 (patch) | |
| tree | 4cb0ddacdad8cebf6544c657edf0e441d6040be7 /apps/main_menu.c | |
| parent | 34c1795430252cc6e1d9d200337a9b9668196cc1 (diff) | |
| download | rockbox-bc8029ee59ff6aeb55d9f90cd943c3f331c69301.zip rockbox-bc8029ee59ff6aeb55d9f90cd943c3f331c69301.tar.gz rockbox-bc8029ee59ff6aeb55d9f90cd943c3f331c69301.tar.bz2 rockbox-bc8029ee59ff6aeb55d9f90cd943c3f331c69301.tar.xz | |
avoid mem info overflow when having 8MB ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main_menu.c')
| -rw-r--r-- | apps/main_menu.c | 3 |
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; |