summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-09-22 22:47:29 +0000
committerDave Chapman <dave@dchapman.com>2005-09-22 22:47:29 +0000
commit06477728269c1766da5255cf992e604cdbf86420 (patch)
treeed79faa91e35acc64c399807b9afa56d209c448b
parent94f31b51f43826c0d9ebfff30d2af1125b223d48 (diff)
downloadrockbox-06477728269c1766da5255cf992e604cdbf86420.tar.gz
rockbox-06477728269c1766da5255cf992e604cdbf86420.tar.bz2
rockbox-06477728269c1766da5255cf992e604cdbf86420.zip
Fix bug in read_uint32be causing simulator warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7550 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/metadata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index b8fbd65738..2772a41f92 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -192,7 +192,7 @@ int read_uint32be(int fd, unsigned int* buf) {
char* p=(char*)buf;
size_t n;
- n=read(fd,tmp,4);
+ n=read(fd,p,4);
if (n==4) {
tmp=p[0];
p[0]=p[3];