win32: specify binary mode fopen() where appropriate.

This commit is contained in:
Daniel Beer 2011-07-27 02:16:33 +12:00
parent 07780ff11f
commit 3fa5b3ce0a
2 changed files with 2 additions and 2 deletions

View File

@ -496,7 +496,7 @@ static int do_cmd_prog(char **arg, int prog_flags)
if (prompt_abort(MODIFY_SYMS))
return 0;
in = fopen(*arg, "r");
in = fopen(*arg, "rb");
if (!in) {
printc_err("prog: %s: %s\n", *arg, last_error());
return -1;

2
sym.c
View File

@ -56,7 +56,7 @@ static int cmd_sym_load_add(int clear, char **arg)
if (clear && prompt_abort(MODIFY_SYMS))
return 0;
in = fopen(*arg, "r");
in = fopen(*arg, "rb");
if (!in) {
printc_err("sym: %s: %s\n", *arg, last_error());
return -1;