1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

All regression tests now pass. But I am sure there must still be problems.

New tests need to be added. (CVS 2666)

FossilOrigin-Name: bcc7d722cea4487a3adf9d9b2af4b74bfbfc5f39
This commit is contained in:
drh
2005-09-08 00:13:27 +00:00
parent d1c301e804
commit 5360ad34b1
6 changed files with 21 additions and 16 deletions

View File

@@ -22,7 +22,7 @@
** COMMIT
** ROLLBACK
**
** $Id: build.c,v 1.345 2005/09/07 21:22:46 drh Exp $
** $Id: build.c,v 1.346 2005/09/08 00:13:27 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2496,11 +2496,13 @@ int sqlite3ArrayAllocate(void **ppArray, int szEntry, int initSize){
int *an = (int*)&ppArray[1];
if( an[0]>=an[1] ){
void *pNew;
an[1] = an[1]*2 + initSize;
pNew = sqliteRealloc(*ppArray, an[1]*szEntry);
int newSize;
newSize = an[1]*2 + initSize;
pNew = sqliteRealloc(*ppArray, newSize*szEntry);
if( pNew==0 ){
return -1;
}
an[1] = newSize;
*ppArray = pNew;
}
p = *ppArray;