Remove all instances of sprintf() from the FTS modules. Ticket #3049. (CVS 4996)

FossilOrigin-Name: 062bf5d44d53ae0ee2bf96eddcc8de09157aa789
This commit is contained in:
drh
2008-04-12 13:06:09 +00:00
parent 0520dbbae3
commit 8a29dfdea0
5 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -3095,8 +3095,8 @@ static void snippetOffsetText(Snippet *p){
for(i=0; i<p->nMatch; i++){
struct snippetMatch *pMatch = &p->aMatch[i];
zBuf[0] = ' ';
sprintf(&zBuf[cnt>0], "%d %d %d %d", pMatch->iCol,
pMatch->iTerm, pMatch->iStart, pMatch->nByte);
sqlite3_snprintf(sizeof(zBuf)-1, &zBuf[cnt>0], "%d %d %d %d",
pMatch->iCol, pMatch->iTerm, pMatch->iStart, pMatch->nByte);
append(&sb, zBuf);
cnt++;
}