Commit 86d8d778 authored by Lev Walkin's avatar Lev Walkin

make file reading work under windows

parent 30520ab3
...@@ -788,7 +788,7 @@ static int argument_is_stdin(char *av[], int idx) { ...@@ -788,7 +788,7 @@ static int argument_is_stdin(char *av[], int idx) {
static FILE *argument_to_file(char *av[], int idx) { static FILE *argument_to_file(char *av[], int idx) {
return argument_is_stdin(av, idx) return argument_is_stdin(av, idx)
? stdin ? stdin
: fopen(av[idx], "r"); : fopen(av[idx], "rb");
} }
static char *argument_to_name(char *av[], int idx) { static char *argument_to_name(char *av[], int idx) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment