summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];