aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-04-29 16:50:28 +0000
committerdrh <drh@noemail.net>2015-04-29 16:50:28 +0000
commitf3cdcdccbeedd4de04d74eb95ecc244eb90e4082 (patch)
treef79e86511e5347f496fb87be780a37e125f29e15 /src/main.c
parentb4a91a9a8859fc021ec4d3de08eb49a257d62a14 (diff)
downloadsqlite-f3cdcdccbeedd4de04d74eb95ecc244eb90e4082.tar.gz
sqlite-f3cdcdccbeedd4de04d74eb95ecc244eb90e4082.zip
Use sqlite3_malloc64() in place of sqlite3_malloc() internally.
FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index ff5a1061b..69365b784 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2431,14 +2431,14 @@ int sqlite3ParseUri(
int eState; /* Parser state when parsing URI */
int iIn; /* Input character index */
int iOut = 0; /* Output character index */
- int nByte = nUri+2; /* Bytes of space to allocate */
+ u64 nByte = nUri+2; /* Bytes of space to allocate */
/* Make sure the SQLITE_OPEN_URI flag is set to indicate to the VFS xOpen
** method that there may be extra parameters following the file-name. */
flags |= SQLITE_OPEN_URI;
for(iIn=0; iIn<nUri; iIn++) nByte += (zUri[iIn]=='&');
- zFile = sqlite3_malloc(nByte);
+ zFile = sqlite3_malloc64(nByte);
if( !zFile ) return SQLITE_NOMEM;
iIn = 5;
@@ -2604,7 +2604,7 @@ int sqlite3ParseUri(
}
}else{
- zFile = sqlite3_malloc(nUri+2);
+ zFile = sqlite3_malloc64(nUri+2);
if( !zFile ) return SQLITE_NOMEM;
memcpy(zFile, zUri, nUri);
zFile[nUri] = '\0';