summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/metadata.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 33ec296..0cf0890 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -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);