forked from bonsai/harakit
str(1): fixed integer overflow
This commit is contained in:
parent
e37c981d66
commit
2c716f1881
@ -66,7 +66,7 @@ pass: for(argv += 2, r = 1; *argv != NULL; ++argv)
|
||||
/* First checks if argv[0][i] is valid ASCII; ctypes(3)
|
||||
* don't handle non-ASCII.
|
||||
* This is bad. */
|
||||
if(argv[0][i] < 0x80 && !ctypes[ctype].f(argv[0][i]))
|
||||
if((unsigned char)argv[0][i] < 0x80 && !ctypes[ctype].f(argv[0][i]))
|
||||
return 1;
|
||||
else
|
||||
r = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user