/ Check-in [d68791e3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Changed to used sqlite3_snprintf instead of snprintf (test code only). (CVS 5648)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d68791e35d13f5ae4befeb0bb5f8ccaf14fd3763
User & Date: shane 2008-08-31 00:29:08
Context
2008-09-01
12:47
Have the rtree module set the estimatedCost output variable. Ticket #3312. (CVS 5649) check-in: 483932c4 user: danielk1977 tags: trunk
2008-08-31
00:29
Changed to used sqlite3_snprintf instead of snprintf (test code only). (CVS 5648) check-in: d68791e3 user: shane tags: trunk
2008-08-30
16:34
Version 3.6.2 (CVS 5647) check-in: 88c51b9f user: drh tags: trunk, release
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test8.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the virtual table interfaces.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15     15   **
    16         -** $Id: test8.c,v 1.74 2008/08/20 14:49:25 danielk1977 Exp $
           16  +** $Id: test8.c,v 1.75 2008/08/31 00:29:08 shane Exp $
    17     17   */
    18     18   #include "sqliteInt.h"
    19     19   #include "tcl.h"
    20     20   #include <stdlib.h>
    21     21   #include <string.h>
    22     22   
    23     23   #ifndef SQLITE_OMIT_VIRTUALTABLE
................................................................................
    92     92     sqlite3_stmt *pStmt;
    93     93   };
    94     94   
    95     95   static int simulateVtabError(echo_vtab *p, const char *zMethod){
    96     96     const char *zErr;
    97     97     char zVarname[128];
    98     98     zVarname[127] = '\0';
    99         -  snprintf(zVarname, 127, "echo_module_fail(%s,%s)", zMethod, p->zTableName);
           99  +  sqlite3_snprintf(127, zVarname, "echo_module_fail(%s,%s)", zMethod, p->zTableName);
   100    100     zErr = Tcl_GetVar(p->interp, zVarname, TCL_GLOBAL_ONLY);
   101    101     if( zErr ){
   102    102       p->base.zErrMsg = sqlite3_mprintf("echo-vtab-error: %s", zErr);
   103    103     }
   104    104     return (zErr!=0);
   105    105   }
   106    106