diff options
author | larrybr <larrybr@noemail.net> | 2024-05-29 03:35:40 +0000 |
---|---|---|
committer | larrybr <larrybr@noemail.net> | 2024-05-29 03:35:40 +0000 |
commit | 7c6256234c25af338a2085c6378e2e12906ece95 (patch) | |
tree | e64377bdce2a8189dc923e03734b3045c7c5b8d9 /tool/sqldiff.c | |
parent | d60a503b4c9197871f006051fb4dd089355b202c (diff) | |
download | sqlite-7c6256234c25af338a2085c6378e2e12906ece95.tar.gz sqlite-7c6256234c25af338a2085c6378e2e12906ece95.zip |
[forum:/forumpost/c9b8d923d5|Fix sqldiff out-of-bounds char classification error mentioned in the forum.]
FossilOrigin-Name: b31933d87301bd93763f0923e0ce06a183700875e6107c9f185faffbd99797d9
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r-- | tool/sqldiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c index cbdfc35cd..a213a6704 100644 --- a/tool/sqldiff.c +++ b/tool/sqldiff.c @@ -383,7 +383,7 @@ static void printQuoted(FILE *out, sqlite3_value *X){ fprintf(out, "'"); for(i=j=0; zArg[i]; i++){ char c = zArg[i]; - int ctl = iscntrl(c); + int ctl = iscntrl((unsigned char)c); if( ctl>inctl ){ inctl = ctl; fprintf(out, "%.*s'||X'%02x", i-j, &zArg[j], c); |