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/printf.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/printf.c')
-rw-r--r-- | src/printf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/printf.c b/src/printf.c index d4063174a..0ee9c9b34 100644 --- a/src/printf.c +++ b/src/printf.c @@ -778,7 +778,7 @@ static int sqlite3StrAccumEnlarge(StrAccum *p, int N){ if( p->useMalloc==1 ){ zNew = sqlite3DbRealloc(p->db, zOld, p->nAlloc); }else{ - zNew = sqlite3_realloc(zOld, p->nAlloc); + zNew = sqlite3_realloc64(zOld, p->nAlloc); } if( zNew ){ assert( p->zText!=0 || p->nChar==0 ); @@ -859,7 +859,7 @@ char *sqlite3StrAccumFinish(StrAccum *p){ if( p->useMalloc==1 ){ p->zText = sqlite3DbMallocRaw(p->db, p->nChar+1 ); }else{ - p->zText = sqlite3_malloc(p->nChar+1); + p->zText = sqlite3_malloc64(p->nChar+1); } if( p->zText ){ memcpy(p->zText, p->zBase, p->nChar+1); @@ -1097,7 +1097,7 @@ void sqlite3DebugPrintf(const char *zFormat, ...){ ** is not the last item in the tree. */ TreeView *sqlite3TreeViewPush(TreeView *p, u8 moreToFollow){ if( p==0 ){ - p = sqlite3_malloc( sizeof(*p) ); + p = sqlite3_malloc64( sizeof(*p) ); if( p==0 ) return 0; memset(p, 0, sizeof(*p)); }else{ |