aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/nextchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/misc/nextchar.c')
-rw-r--r--ext/misc/nextchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/misc/nextchar.c b/ext/misc/nextchar.c
index 49dfd24f1..bf44e064e 100644
--- a/ext/misc/nextchar.c
+++ b/ext/misc/nextchar.c
@@ -85,7 +85,7 @@ static void nextCharAppend(nextCharContext *p, unsigned c){
if( p->nUsed+1 > p->nAlloc ){
unsigned int *aNew;
int n = p->nAlloc*2 + 30;
- aNew = sqlite3_realloc(p->aResult, n*sizeof(unsigned int));
+ aNew = sqlite3_realloc64(p->aResult, n*sizeof(unsigned int));
if( aNew==0 ){
p->mallocFailed = 1;
return;
@@ -269,7 +269,7 @@ static void nextCharFunc(
sqlite3_result_error_nomem(context);
}else{
unsigned char *pRes;
- pRes = sqlite3_malloc( c.nUsed*4 + 1 );
+ pRes = sqlite3_malloc64( c.nUsed*4 + 1 );
if( pRes==0 ){
sqlite3_result_error_nomem(context);
}else{