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

This commit is contained in:
Tim J. Robbins 2004-07-19 12:57:24 +00:00
parent 305627df81
commit be1e385e24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132404

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;