aboutsummaryrefslogtreecommitdiff
path: root/test/fuzzcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzzcheck.c')
-rw-r--r--test/fuzzcheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fuzzcheck.c b/test/fuzzcheck.c
index 2d99fa4be..e7fa5261b 100644
--- a/test/fuzzcheck.c
+++ b/test/fuzzcheck.c
@@ -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);