diff options
author | ketmar <ketmar@ketmar.no-ip.org> | 2012-10-30 23:51:50 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2012-10-31 07:16:44 +1000 |
commit | 4efbd7b9808abcbaa22099dd9c9703331e849bd2 (patch) | |
tree | db4cb47461a27aeaf27bcc1a5c0203cd94741b8f | |
parent | 88697045767b05755a0a31a254e2e3af73c6a0c3 (diff) | |
download | jimtcl-4efbd7b9808abcbaa22099dd9c9703331e849bd2.zip jimtcl-4efbd7b9808abcbaa22099dd9c9703331e849bd2.tar.gz jimtcl-4efbd7b9808abcbaa22099dd9c9703331e849bd2.tar.bz2 |
bug in sqlite module (array index out of bounds)
Invalid array indexing in error message (array index out of bounds).
-rw-r--r-- | jim-sqlite3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jim-sqlite3.c b/jim-sqlite3.c index be20d47..8016b7f 100644 --- a/jim-sqlite3.c +++ b/jim-sqlite3.c @@ -124,8 +124,8 @@ static Jim_Obj *JimSqliteFormatQuery(Jim_Interp *interp, Jim_Obj *fmtObjPtr, Jim_AppendString(interp, resObjPtr, "%", 1); break; default: - spec[1] = *fmt; - spec[2] = '\0'; + spec[0] = *fmt; + spec[1] = '\0'; Jim_FreeNewObj(interp, resObjPtr); Jim_SetResultFormatted(interp, "bad field specifier \"%s\", only %%s and %%%% are valid", spec); |