Avoid passing negative values to tolower() on machines with signed chars.
This commit is contained in:
parent
25712d3327
commit
a83177cdc3
@ -131,7 +131,7 @@ getargs(char *av[])
|
||||
continue;
|
||||
}
|
||||
c = ++p;
|
||||
switch (tolower(*c)) {
|
||||
switch (tolower((unsigned char)*c)) {
|
||||
case 's':
|
||||
if (*++p || (p = *++av))
|
||||
ip->sepstring = p;
|
||||
|
Loading…
Reference in New Issue
Block a user