summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/src/src/test5.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/sqlite/src/src/test5.c')
-rw-r--r--third_party/sqlite/src/src/test5.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/third_party/sqlite/src/src/test5.c b/third_party/sqlite/src/src/test5.c
index 369580b..504fdb8 100644
--- a/third_party/sqlite/src/src/test5.c
+++ b/third_party/sqlite/src/src/test5.c
@@ -14,8 +14,6 @@
** testing of the SQLite library. Specifically, the code in this file
** is used for testing the SQLite routines for converting between
** the various supported unicode encodings.
-**
-** $Id: test5.c,v 1.22 2008/08/12 15:04:59 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "vdbeInt.h"
@@ -157,7 +155,7 @@ static int test_translate(
if( enc_from==SQLITE_UTF8 ){
z = Tcl_GetString(objv[1]);
if( objc==5 ){
- z = sqlite3DbStrDup(0, z);
+ z = sqlite3_mprintf("%s", z);
}
sqlite3ValueSetStr(pVal, -1, z, enc_from, xDel);
}else{