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) {