diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-19 12:57:24 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-07-19 12:57:24 +0000 |
commit | be1e385e24d1b4fee27a18e6f422fb3878d21099 (patch) | |
tree | ee4375e4789f9cd4aea431ffa2cabac1f456c522 /usr.bin/lam | |
parent | 305627df8101f42ce354cdbcc3913b61c60ff69d (diff) | |
download | src-test2-be1e385e24d1b4fee27a18e6f422fb3878d21099.tar.gz src-test2-be1e385e24d1b4fee27a18e6f422fb3878d21099.zip |
Avoid passing negative values to tolower() on machines with signed chars.
Notes
Notes:
svn path=/head/; revision=132404
Diffstat (limited to 'usr.bin/lam')
-rw-r--r-- | usr.bin/lam/lam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c index 9791d38060b7..40cd9453610f 100644 --- a/usr.bin/lam/lam.c +++ b/usr.bin/lam/lam.c @@ -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; |