diff options
author | drh <drh@noemail.net> | 2008-07-31 17:16:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-07-31 17:16:05 +0000 |
commit | 0a60a384e782335951923deba5347e23be12cb31 (patch) | |
tree | e178a88063f58d867182884a466a76661f82a8e7 /src/test_malloc.c | |
parent | 2462e322464199d3c1551a6a7236a311f0abd701 (diff) | |
download | sqlite-0a60a384e782335951923deba5347e23be12cb31.tar.gz sqlite-0a60a384e782335951923deba5347e23be12cb31.zip |
Change the definition of SQLITE_CONFIG_PAGECACHE and
SQLITE_CONFIG_SCRATCH to omit the magic "+4" in the buffer size
calculation. (CVS 5512)
FossilOrigin-Name: e7ed0fe640a39053009eac52a7f055b121750e57
Diffstat (limited to 'src/test_malloc.c')
-rw-r--r-- | src/test_malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test_malloc.c b/src/test_malloc.c index 9e4966dc7..63c9c0469 100644 --- a/src/test_malloc.c +++ b/src/test_malloc.c @@ -13,7 +13,7 @@ ** This file contains code used to implement test interfaces to the ** memory allocation subsystem. ** -** $Id: test_malloc.c,v 1.43 2008/07/29 14:29:07 drh Exp $ +** $Id: test_malloc.c,v 1.44 2008/07/31 17:16:05 drh Exp $ */ #include "sqliteInt.h" #include "tcl.h" @@ -886,7 +886,7 @@ static int test_config_scratch( buf = 0; rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, 0, 0, 0); }else{ - buf = malloc( (sz+4)*N ); + buf = malloc( sz*N ); rc = sqlite3_config(SQLITE_CONFIG_SCRATCH, buf, sz, N); } pResult = Tcl_NewObj(); @@ -926,7 +926,7 @@ static int test_config_pagecache( buf = 0; rc = sqlite3_config(SQLITE_CONFIG_PAGECACHE, 0, 0, 0); }else{ - buf = malloc( (sz+4)*N ); + buf = malloc( sz*N ); rc = sqlite3_config(SQLITE_CONFIG_PAGECACHE, buf, sz, N); } pResult = Tcl_NewObj(); |