1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix harmless compiler warnings in fuzzcheck.

FossilOrigin-Name: e7b4ffecc610c494ebd506977402ec48cc799780f96c6293c0ccf27697160aa1
This commit is contained in:
drh
2021-04-23 13:57:53 +00:00
parent ba6619d7be
commit 1521270010
3 changed files with 9 additions and 9 deletions

View File

@ -1781,10 +1781,10 @@ int main(int argc, char **argv){
for(i=iFirstInsArg; i<argc; i++){
if( strcmp(argv[i],"-")==0 ){
/* A filename of "-" means read multiple filenames from stdin */
unsigned char zLine[2000];
char zLine[2000];
while( rc==0 && fgets(zLine,sizeof(zLine),stdin)!=0 ){
size_t kk = strlen(zLine);
while( kk>0 && isspace(zLine[kk-1]) ) kk--;
while( kk>0 && (zLine[kk]=='\n' || zLine[kk]=='\r')) kk--;
sqlite3_bind_text(pStmt, 1, zLine, kk, SQLITE_STATIC);
sqlite3_step(pStmt);
rc = sqlite3_reset(pStmt);