diff options
author | drh <drh@noemail.net> | 2015-05-01 14:07:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-05-01 14:07:30 +0000 |
commit | abf582509d916aa6a12a7b3b4ec9a9c2389c5cfa (patch) | |
tree | db07604bc7a61e3cad4db17338054a3b037fb916 /ext/fts3/fts3_snippet.c | |
parent | 6296a2ab4becde6e2b3519d0e0f88187212e517e (diff) | |
download | sqlite-abf582509d916aa6a12a7b3b4ec9a9c2389c5cfa.tar.gz sqlite-abf582509d916aa6a12a7b3b4ec9a9c2389c5cfa.zip |
Use the sqlite3Fts3ErrMsg() function to set error message text in FTS3,
and to ensure that error messages are not overwritten and thus leaked.
FossilOrigin-Name: 605347e087ec5eb817f3c94f4616abe26c7ab66b
Diffstat (limited to 'ext/fts3/fts3_snippet.c')
-rw-r--r-- | ext/fts3/fts3_snippet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fts3/fts3_snippet.c b/ext/fts3/fts3_snippet.c index 7933e29a7..84f0079fb 100644 --- a/ext/fts3/fts3_snippet.c +++ b/ext/fts3/fts3_snippet.c @@ -824,7 +824,7 @@ static int fts3MatchinfoCheck( ){ return SQLITE_OK; } - *pzErr = sqlite3_mprintf("unrecognized matchinfo request: %c", cArg); + sqlite3Fts3ErrMsg(pzErr, "unrecognized matchinfo request: %c", cArg); return SQLITE_ERROR; } |