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

Changed to used sqlite3_snprintf instead of snprintf (test code only). (CVS 5648)

FossilOrigin-Name: d68791e35d13f5ae4befeb0bb5f8ccaf14fd3763
This commit is contained in:
shane
2008-08-31 00:29:08 +00:00
parent 22f1d5f952
commit f5eccb6925
3 changed files with 10 additions and 10 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.74 2008/08/20 14:49:25 danielk1977 Exp $
** $Id: test8.c,v 1.75 2008/08/31 00:29:08 shane Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -96,7 +96,7 @@ 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);