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

Remove a reference to snprintf() in test8.c. (CVS 5538)

FossilOrigin-Name: 32d32b743642c2f6d9e4f8845a9cd07e4f83f4cd
This commit is contained in:
drh
2008-08-05 21:36:06 +00:00
parent e50135e26d
commit b36d88abd3
3 changed files with 10 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: test8.c,v 1.71 2008/08/01 17:51:47 danielk1977 Exp $
** $Id: test8.c,v 1.72 2008/08/05 21:36:07 drh Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -96,7 +96,8 @@ static int simulateVtabError(echo_vtab *p, const char *zMethod){
const char *zErr;
char zVarname[128];
zVarname[127] = '\0';
snprintf(zVarname, 127, "echo_module_fail(%s,%s)", zMethod, p->zTableName);
sqlite3_snprintf(127, zVarname,
"echo_module_fail(%s,%s)", zMethod, p->zTableName);
zErr = Tcl_GetVar(p->interp, zVarname, TCL_GLOBAL_ONLY);
if( zErr ){
p->base.zErrMsg = sqlite3_mprintf("echo-vtab-error: %s", zErr);