Skip to content

Commit d62afeb

Browse files
author
Christopher J. Brody
committed
Fix for storesafe#34 (Windows error C4996: 'fopen'...) from SQLCipher prerelease branch
1 parent e024361 commit d62afeb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CHANGES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changes
22

3-
## cordova-sqlcipher-adapter 0.1.7-pre3
3+
## cordova-sqlcipher-adapter 0.1.7-pre4
44

55
- Fix Windows build
66
- SQLCipher prerelease fix to use append mode for cipher_profile

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-sqlcipher-adapter",
3-
"version": "0.1.7-pre3",
3+
"version": "0.1.7-pre4",
44
"description": "SQLCipher database adapter for PhoneGap/Cordova, based on cordova-sqlite-storage",
55
"cordova": {
66
"id": "cordova-sqlcipher-adapter",

plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="cordova-sqlcipher-adapter"
5-
version="0.1.7-pre3">
5+
version="0.1.7-pre4">
66

77
<name>Cordova sqlcipher adapter</name>
88

src/common/sqlite3.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -17953,7 +17953,7 @@ int sqlcipher_cipher_profile(sqlite3 *db, const char *destination){
1795317953
}else if(sqlite3StrICmp(destination, "off") == 0){
1795417954
f = 0;
1795517955
}else{
17956-
#if defined(_WIN32) && (__STDC_VERSION__ > 199901L)
17956+
#if defined(_WIN32) && (__STDC_VERSION__ > 199901L) || defined(SQLITE_OS_WINRT)
1795717957
if(fopen_s(&f, destination, "a") != 0){
1795817958
#else
1795917959
f = fopen(destination, "a");

0 commit comments

Comments
 (0)