1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix a bug in the test3.c module that was causing failures in btree5.test. (CVS 1962)

FossilOrigin-Name: cd200cf8332be2c99a0a312b5f7dcd582a93fd18
This commit is contained in:
drh
2004-09-17 19:39:23 +00:00
parent a42707b234
commit f7a8362920
3 changed files with 9 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
**
** $Id: test3.c,v 1.51 2004/09/08 20:13:06 drh Exp $
** $Id: test3.c,v 1.52 2004/09/17 19:39:24 drh Exp $
*/
#include "sqliteInt.h"
#include "pager.h"
@@ -997,7 +997,7 @@ static int btree_key(
sqlite3BtreeKeySize(pCur, &n);
if( sqlite3BtreeFlags(pCur) & BTREE_INTKEY ){
char zBuf2[60];
sqlite3_snprintf(sizeof(zBuf),zBuf2, "%llu", n);
sqlite3_snprintf(sizeof(zBuf2),zBuf2, "%llu", n);
Tcl_AppendResult(interp, zBuf2, 0);
}else{
zBuf = malloc( n+1 );