diff options
author | Lev Walkin <vlm@lionet.info> | 2012-10-10 05:55:28 -0700 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2012-10-10 05:55:28 -0700 |
commit | 86d8d7785e52b8fb2b681fecd4508013bbf26e7f (patch) | |
tree | bdce51513f0f756ac99c721ef447c2d2a2af5cc9 | |
parent | 30520ab3357c4533b4e8290a2e62f8a8bd4b6a13 (diff) |
make file reading work under windows
-rw-r--r-- | skeletons/converter-sample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/skeletons/converter-sample.c b/skeletons/converter-sample.c index c0fc2fb8..2f74a800 100644 --- a/skeletons/converter-sample.c +++ b/skeletons/converter-sample.c @@ -788,7 +788,7 @@ static int argument_is_stdin(char *av[], int idx) { static FILE *argument_to_file(char *av[], int idx) { return argument_is_stdin(av, idx) ? stdin - : fopen(av[idx], "r"); + : fopen(av[idx], "rb"); } static char *argument_to_name(char *av[], int idx) { |