File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -879,7 +879,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
879879 Db * pDb = 0 ;
880880 sqlite3 * db = ctx -> pBt -> db ;
881881 const char * db_filename = sqlite3_db_filename (db , "main" );
882- const char * migrated_db_filename = sqlite3_mprintf ("%s-migrated" , db_filename );
882+ char * migrated_db_filename = sqlite3_mprintf ("%s-migrated" , db_filename );
883883 char * key = ctx -> read_ctx -> pass ;
884884 static const unsigned char aCopy [] = {
885885 BTREE_SCHEMA_VERSION , 1 , /* Add one to the old schema cookie */
@@ -938,7 +938,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
938938 assert ( 1 == sqlite3BtreeIsInTrans (pDest ) );
939939 assert ( 1 == sqlite3BtreeIsInTrans (pSrc ) );
940940
941- sqlite3CodecGetKey (db , db -> nDb - 1 , & key , & password_sz );
941+ sqlite3CodecGetKey (db , db -> nDb - 1 , ( void * * ) & key , & password_sz );
942942 sqlcipher_codec_ctx_set_pass (ctx , key , password_sz , 2 );
943943
944944 int i = 0 ;
You can’t perform that action at this time.
0 commit comments