1
0
Fork 0
forked from len0rd/rockbox

Fixed overflow in buffer display for units with larger memory (iRiver).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5923 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-02-11 23:57:49 +00:00
parent b4527a3421
commit 4dcb25d4e7

View file

@ -138,8 +138,7 @@ extern bool simulate_usb(void);
bool show_info(void) bool show_info(void)
{ {
char s[32], s2[32]; char s[32], s2[32];
/* avoid overflow for 8MB mod :) was: ((mp3end - mp3buf) * 1000) / 0x100000; */ long buflen = ((mp3end - mp3buf) * 2) / 2097; /* avoid overflow */
long buflen = ((mp3end - mp3buf) * 100) / 0x19999;
int integer, decimal; int integer, decimal;
bool done = false; bool done = false;
int key; int key;