Skip to content

Commit

Permalink
Add missing nul-terminator to a Tcl_AppendResult() call in tclsqlite.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielk-1977 committed Dec 6, 2016
1 parent fd0d818 commit f73cdab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tclsqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -3140,7 +3140,8 @@ static int SQLITE_TCLAPI DbObjCmd(
*/
case DB_PREUPDATE: {
#ifndef SQLITE_ENABLE_PREUPDATE_HOOK
Tcl_AppendResult(interp, "preupdate_hook was omitted at compile-time");
Tcl_AppendResult(interp, "preupdate_hook was omitted at compile-time",
(char*)0);
rc = TCL_ERROR;
#else
static const char *azSub[] = {"count", "depth", "hook", "new", "old", 0};
Expand Down

0 comments on commit f73cdab

Please sign in to comment.