forked from len0rd/rockbox
Fix the read_uint32be function - it was overwriting before saving parts of the int.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7565 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0dd0d3134d
commit
1302f97dde
1 changed files with 3 additions and 2 deletions
|
|
@ -196,9 +196,10 @@ int read_uint32be(int fd, unsigned int* buf) {
|
|||
if (n==4) {
|
||||
tmp=p[0];
|
||||
p[0]=p[3];
|
||||
p[1]=p[2];
|
||||
p[2]=p[1];
|
||||
p[3]=tmp;
|
||||
tmp=p[2];
|
||||
p[2]=p[1];
|
||||
p[1]=tmp;
|
||||
}
|
||||
|
||||
return(n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue