Avoid passing negative values to tolower() on machines with signed chars.

This commit is contained in:
tjr 2004-07-19 12:57:24 +00:00
parent 25712d3327
commit a83177cdc3

View File

@ -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;