Skip to content

Commit

Permalink
isohybrid: Open ISO file in binary mode
Browse files Browse the repository at this point in the history
Open ISO file in binary mode to ensure that line endings stay untouched.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  • Loading branch information
ColinFinck authored and geneC committed May 14, 2017
1 parent 8739e2f commit 80b0ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/isohybrid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 80b0ef5

Please sign in to comment.