summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a78c76a..fa18e03 100644
--- a/src/main.c
+++ b/src/main.c
@@ -146,7 +146,7 @@ int main(int argc, char *argv[]) {
parser = cmark_parser_new(options);
for (i = 0; i < numfps; i++) {
- FILE *fp = fopen(argv[files[i]], "r");
+ FILE *fp = fopen(argv[files[i]], "rb");
if (fp == NULL) {
fprintf(stderr, "Error opening file %s: %s\n", argv[files[i]],
strerror(errno));