Avoid passing negative values to tolower() on machines with signed chars.
This commit is contained in:
parent
305627df81
commit
be1e385e24
@ -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