From 0e4a8a66734c84d2af05666975c3fa4cbfbe3d06 Mon Sep 17 00:00:00 2001 From: Kaloyan Raev Date: Thu, 1 Feb 2018 18:30:57 +0200 Subject: [PATCH] Fix "Memory mapped file error" regression --- README.md | 4 ++-- build.gradle | 2 +- src/main/cpp/storj-java.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ab30af1..67dcf4b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ For building Android applications it is recommended to use the [android-libstorj ```Gradle dependencies { - compile 'io.storj:libstorj-java:0.6' + compile 'io.storj:libstorj-java:0.6.1' } ``` @@ -20,6 +20,6 @@ dependencies { io.storj libstorj-java - 0.6 + 0.6.1 ``` diff --git a/build.gradle b/build.gradle index 5b30b1b..1fc1720 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ apply plugin: 'maven' apply plugin: 'maven-publish' group = 'io.storj' -version = '0.6' +version = '0.6.1' description = """Java bindings for libstorj""" diff --git a/src/main/cpp/storj-java.cpp b/src/main/cpp/storj-java.cpp index 821f50e..accc31a 100644 --- a/src/main/cpp/storj-java.cpp +++ b/src/main/cpp/storj-java.cpp @@ -866,7 +866,7 @@ Java_io_storj_libstorj_Storj__1downloadFile( FILE *fd = NULL; if (path) { - fd = fopen(path, "w"); + fd = fopen(path, "w+"); } if (fd == NULL) {