diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-19 12:57:24 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-19 12:57:24 +0000 |
commit | a83177cdc35cb930c19a5b58f587060cfba90d8c (patch) | |
tree | ee4375e4789f9cd4aea431ffa2cabac1f456c522 /usr.bin/lam | |
parent | 25712d3327b691e058d85b2d56ac6b1bdc7d93f7 (diff) | |
download | FreeBSD-src-a83177cdc35cb930c19a5b58f587060cfba90d8c.zip FreeBSD-src-a83177cdc35cb930c19a5b58f587060cfba90d8c.tar.gz |
Avoid passing negative values to tolower() on machines with signed chars.
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 9791d38..40cd945 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; |