Remove all instances of sprintf() from the FTS modules. Ticket #3049. (CVS 4996)
FossilOrigin-Name: 062bf5d44d53ae0ee2bf96eddcc8de09157aa789
This commit is contained in:
+2
-2
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user