aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorColin Finck <colin@reactos.org>2017-01-19 00:41:39 +0100
committerGene Cumm <gene.cumm@gmail.com>2017-05-14 11:18:40 -0400
commit80b0ef5ffd6998818b3785c3c15bf2ae73687e09 (patch)
tree83fc6cbca5202f494c186b28304028a0374d4694 /utils
parent8739e2ff9ba3f92652c8df846924fd00e1ce2753 (diff)
downloadsyslinux-80b0ef5ffd6998818b3785c3c15bf2ae73687e09.tar.gz
syslinux-80b0ef5ffd6998818b3785c3c15bf2ae73687e09.tar.xz
syslinux-80b0ef5ffd6998818b3785c3c15bf2ae73687e09.zip
isohybrid: Open ISO file in binary mode
Open ISO file in binary mode to ensure that line endings stay untouched. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/isohybrid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index 1a203213..a9e38d4d 100644
--- a/utils/isohybrid.c
+++ b/utils/isohybrid.c
@@ -967,7 +967,7 @@ main(int argc, char *argv[])
srand(time(NULL) << (getppid() << getpid()));
- if (!(fp = fopen(argv[0], "r+")))
+ if (!(fp = fopen(argv[0], "rb+")))
err(1, "could not open file `%s'", argv[0]);
if (fseeko(fp, (off_t) (16 << 11), SEEK_SET))