Index: ext/async/sqlite3async.c ================================================================== --- ext/async/sqlite3async.c +++ ext/async/sqlite3async.c @@ -1229,12 +1229,12 @@ ** needs to return a canonical path. The following block assumes the ** file-system uses unix style paths. */ if( rc==SQLITE_OK ){ int i, j; - int n = nPathOut; char *z = zPathOut; + int n = strlen(z); while( n>1 && z[n-1]=='/' ){ n--; } for(i=j=0; i