diff options
author | drh <drh@noemail.net> | 2015-04-29 16:50:28 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-29 16:50:28 +0000 |
commit | f3cdcdccbeedd4de04d74eb95ecc244eb90e4082 (patch) | |
tree | f79e86511e5347f496fb87be780a37e125f29e15 /src/func.c | |
parent | b4a91a9a8859fc021ec4d3de08eb49a257d62a14 (diff) | |
download | sqlite-f3cdcdccbeedd4de04d74eb95ecc244eb90e4082.tar.gz sqlite-f3cdcdccbeedd4de04d74eb95ecc244eb90e4082.zip |
Use sqlite3_malloc64() in place of sqlite3_malloc() internally.
FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/func.c b/src/func.c index 782a24088..fe1364c0f 100644 --- a/src/func.c +++ b/src/func.c @@ -388,7 +388,7 @@ static void roundFunc(sqlite3_context *context, int argc, sqlite3_value **argv){ #endif /* -** Allocate nByte bytes of space using sqlite3_malloc(). If the +** Allocate nByte bytes of space using sqlite3Malloc(). If the ** allocation fails, call sqlite3_result_error_nomem() to notify ** the database handle that malloc() has failed and return NULL. ** If nByte is larger than the maximum string or blob length, then @@ -1057,7 +1057,7 @@ static void charFunc( ){ unsigned char *z, *zOut; int i; - zOut = z = sqlite3_malloc( argc*4+1 ); + zOut = z = sqlite3_malloc64( argc*4+1 ); if( z==0 ){ sqlite3_result_error_nomem(context); return; @@ -1205,7 +1205,7 @@ static void replaceFunc( return; } zOld = zOut; - zOut = sqlite3_realloc(zOut, (int)nOut); + zOut = sqlite3_realloc64(zOut, (int)nOut); if( zOut==0 ){ sqlite3_result_error_nomem(context); sqlite3_free(zOld); |