diff options
author | drh <drh@noemail.net> | 2007-02-28 06:14:25 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2007-02-28 06:14:25 +0000 |
commit | f075cd087b3f7427de32cf8e696a42b8f4e9013e (patch) | |
tree | a2cfc8564b1e1d5c9cde60dc32addf86488b3b3a /src | |
parent | b0603416dc43ff44786af0f8715a7ef044479f96 (diff) | |
download | sqlite-f075cd087b3f7427de32cf8e696a42b8f4e9013e.tar.gz sqlite-f075cd087b3f7427de32cf8e696a42b8f4e9013e.zip |
Work around incompatibilities in the windows printf() routine within the
new I/O tracing logic. (CVS 3666)
FossilOrigin-Name: ceb3a07f559b5160232c8bce5446f4d0e8aab92b
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shell.c b/src/shell.c index e21549674..3049b677a 100644 --- a/src/shell.c +++ b/src/shell.c @@ -12,7 +12,7 @@ ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** -** $Id: shell.c,v 1.159 2007/02/28 04:47:27 drh Exp $ +** $Id: shell.c,v 1.160 2007/02/28 06:14:25 drh Exp $ */ #include <stdlib.h> #include <string.h> @@ -111,10 +111,13 @@ static FILE *iotrace = 0; */ static void iotracePrintf(const char *zFormat, ...){ va_list ap; + char *z; if( iotrace==0 ) return; va_start(ap, zFormat); - vfprintf(iotrace, zFormat, ap); + z = sqlite3_vmprintf(zFormat, ap); va_end(ap); + fprintf(iotrace, "%s", z); + sqlite3_free(z); } |