File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1017,7 +1017,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
1017
1017
commands [2 ] = attach_command ;
1018
1018
commands [3 ] = "SELECT sqlcipher_export('migrate');";
1019
1019
1020
- for (command_idx = 0 ; command_idx < ( sizeof ( commands )/ sizeof ( commands [ 0 ]) ); command_idx ++ ){
1020
+ for (command_idx = 0 ; command_idx < ArraySize ( commands ); command_idx ++ ){
1021
1021
const char * command = commands [command_idx ];
1022
1022
if (strcmp (command , "" ) == 0 ){
1023
1023
continue ;
@@ -1070,7 +1070,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
1070
1070
sqlite3CodecGetKey (db , db -> nDb - 1 , (void * * )& key , & password_sz );
1071
1071
sqlite3CodecAttach (db , 0 , key , password_sz );
1072
1072
1073
- for (i = 0 ; i < ( sizeof ( aCopy )/ sizeof ( aCopy [ 0 ]) ); i += 2 ){
1073
+ for (i = 0 ; i < ArraySize ( aCopy ); i += 2 ){
1074
1074
sqlite3BtreeGetMeta (pSrc , aCopy [i ], & meta );
1075
1075
rc = sqlite3BtreeUpdateMeta (pDest , aCopy [i ], meta + aCopy [i + 1 ]);
1076
1076
if ( NEVER (rc != SQLITE_OK ) ) goto handle_error ;
You can’t perform that action at this time.
0 commit comments