summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/lib/bootz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/lib/bootz.c b/arch/arm/lib/bootz.c
index 9be615be2a..956ea82862 100644
--- a/arch/arm/lib/bootz.c
+++ b/arch/arm/lib/bootz.c
@@ -89,10 +89,10 @@ static int do_bootz(struct command *cmdtp, int argc, char *argv[])
}
}
- memcpy(zimage, &header, sizeof(header));
+ memcpy(zimage, header, sizeof(*header));
- ret = read(fd, zimage + sizeof(header), end - sizeof(header));
- if (ret < end - sizeof(header)) {
+ ret = read(fd, zimage + sizeof(*header), end - sizeof(*header));
+ if (ret < end - sizeof(*header)) {
printf("could not read %s\n", argv[1]);
goto err_out1;
}