summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/arm_boot_tools/mksunxiboot/mksunxiboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/arm_boot_tools/mksunxiboot/mksunxiboot.c b/util/arm_boot_tools/mksunxiboot/mksunxiboot.c
index cb8e8f9e76..58765b1a6f 100644
--- a/util/arm_boot_tools/mksunxiboot/mksunxiboot.c
+++ b/util/arm_boot_tools/mksunxiboot/mksunxiboot.c
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
- fd_in = fopen(argv[1], "r");
+ fd_in = fopen(argv[1], "rb");
if (!fd_in) {
fprintf(stderr, "Cannot open input %s", argv[1]);
return EXIT_FAILURE;