1
0
Fork 0
forked from len0rd/rockbox

avoid mem info overflow when having 8MB ;-)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3128 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Uwe Freese 2003-01-18 18:21:13 +00:00
parent 34c1795430
commit bc8029ee59

View file

@ -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;