mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Eliminate all uses of sprintf() and strcpy(). These were not being
misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains C code routines that are called by the parser
|
||||
** to handle SELECT statements in SQLite.
|
||||
**
|
||||
** $Id: select.c,v 1.339 2007/05/03 13:02:27 drh Exp $
|
||||
** $Id: select.c,v 1.340 2007/05/04 13:15:56 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -1012,7 +1012,7 @@ static void generateColumnNames(
|
||||
}else{
|
||||
char zName[30];
|
||||
assert( p->op!=TK_COLUMN || pTabList==0 );
|
||||
sprintf(zName, "column%d", i+1);
|
||||
sqlite3_snprintf(sizeof(zName), zName, "column%d", i+1);
|
||||
sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user