mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Avoid passing negative values to tolower() on machines with signed chars.
This commit is contained in:
parent
305627df81
commit
be1e385e24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132404
@ -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