summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io/inkjar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/inkjar.cpp b/src/io/inkjar.cpp
index b9335c556..b31b98336 100644
--- a/src/io/inkjar.cpp
+++ b/src/io/inkjar.cpp
@@ -104,7 +104,7 @@ bool JarFile::init_inflation()
bool JarFile::open()
{
- if ((fd = fopen(_filename, O_RDONLY)) < 0) {
+ if ((fd = fopen(_filename, "r")) < 0) {
fprintf(stderr, "open failed.\n");
return false;
}