aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/misc/eval.c')
-rw-r--r--ext/misc/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/eval.c b/ext/misc/eval.c
index e90bfc010..fd27ed6cc 100644
--- a/ext/misc/eval.c
+++ b/ext/misc/eval.c
@@ -44,7 +44,7 @@ static int callback(void *pCtx, int argc, char **argv, char **colnames){
/* Using sqlite3_realloc64() would be better, but it is a recent
** addition and will cause a segfault if loaded by an older version
** of SQLite. */
- zNew = p->nAlloc<=0x7fffffff ? sqlite3_realloc(p->z, (int)p->nAlloc) : 0;
+ zNew = p->nAlloc<=0x7fffffff ? sqlite3_realloc64(p->z, p->nAlloc) : 0;
if( zNew==0 ){
sqlite3_free(p->z);
memset(p, 0, sizeof(*p));