Skip to content

Commit c0b2621

Browse files
[forum:/forumpost/c9b8d923d5|Fix sqldiff out-of-bounds char classification error mentioned in the forum.]
1 parent 937fafd commit c0b2621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/sqldiff.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ static void printQuoted(FILE *out, sqlite3_value *X){
383383
fprintf(out, "'");
384384
for(i=j=0; zArg[i]; i++){
385385
char c = zArg[i];
386-
int ctl = iscntrl(c);
386+
int ctl = iscntrl((unsigned char)c);
387387
if( ctl>inctl ){
388388
inctl = ctl;
389389
fprintf(out, "%.*s'||X'%02x", i-j, &zArg[j], c);

0 commit comments

Comments
 (0)