win32: specify binary mode fopen() where appropriate.
This commit is contained in:
parent
07780ff11f
commit
3fa5b3ce0a
2
devcmd.c
2
devcmd.c
|
@ -496,7 +496,7 @@ static int do_cmd_prog(char **arg, int prog_flags)
|
||||||
if (prompt_abort(MODIFY_SYMS))
|
if (prompt_abort(MODIFY_SYMS))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
in = fopen(*arg, "r");
|
in = fopen(*arg, "rb");
|
||||||
if (!in) {
|
if (!in) {
|
||||||
printc_err("prog: %s: %s\n", *arg, last_error());
|
printc_err("prog: %s: %s\n", *arg, last_error());
|
||||||
return -1;
|
return -1;
|
||||||
|
|
2
sym.c
2
sym.c
|
@ -56,7 +56,7 @@ static int cmd_sym_load_add(int clear, char **arg)
|
||||||
if (clear && prompt_abort(MODIFY_SYMS))
|
if (clear && prompt_abort(MODIFY_SYMS))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
in = fopen(*arg, "r");
|
in = fopen(*arg, "rb");
|
||||||
if (!in) {
|
if (!in) {
|
||||||
printc_err("sym: %s: %s\n", *arg, last_error());
|
printc_err("sym: %s: %s\n", *arg, last_error());
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue