summaryrefslogtreecommitdiff
path: root/apps/x11_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r--apps/x11_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c
index 1020350f..7b50daa9 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -499,7 +499,7 @@ void winreloadfile(pdfapp_t *app)
pdfapp_close(app);
- fd = open(filename, O_BINARY | O_RDONLY, 0666);
+ fd = open(filename, O_RDONLY, 0666);
if (fd < 0)
fz_throw(gapp.ctx, "cannot reload file '%s'", filename);
@@ -632,7 +632,7 @@ int main(int argc, char **argv)
gapp.resolution = resolution;
gapp.pageno = pageno;
- fd = open(filename, O_BINARY | O_RDONLY, 0666);
+ fd = open(filename, O_RDONLY, 0666);
if (fd < 0)
fz_throw(gapp.ctx, "cannot open file '%s'", filename);