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:
parent
b4527a3421
commit
4dcb25d4e7
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue