summaryrefslogtreecommitdiff
path: root/usr.bin/lam
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-07-19 12:57:24 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-07-19 12:57:24 +0000
commitbe1e385e24d1b4fee27a18e6f422fb3878d21099 (patch)
treeee4375e4789f9cd4aea431ffa2cabac1f456c522 /usr.bin/lam
parent305627df8101f42ce354cdbcc3913b61c60ff69d (diff)
downloadsrc-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.c2
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;