=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/from/from.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/from/from.c 2009/10/27 23:59:38 1.14 +++ src/usr.bin/from/from.c 2013/11/26 13:18:55 1.15 @@ -1,4 +1,4 @@ -/* $OpenBSD: from.c,v 1.14 2009/10/27 23:59:38 deraadt Exp $ */ +/* $OpenBSD: from.c,v 1.15 2013/11/26 13:18:55 deraadt Exp $ */ /* $NetBSD: from.c,v 1.6 1995/09/01 01:39:10 jtc Exp $ */ /* @@ -63,8 +63,8 @@ case 's': sender = optarg; for (p = sender; *p; ++p) - if (isupper(*p)) - *p = tolower(*p); + if (isupper((unsigned char)*p)) + *p = tolower((unsigned char)*p); break; case '?': default: @@ -122,18 +122,18 @@ char ch, pch, first, *p, *t; for (first = *sender++;;) { - if (isspace(ch = *line)) + if (isspace((unsigned char)(ch = *line))) return(0); ++line; - if (isupper(ch)) - ch = tolower(ch); + if (isupper((unsigned char)ch)) + ch = tolower((unsigned char)ch); if (ch != first) continue; for (p = sender, t = line;;) { if (!(pch = *p++)) return(1); - if (isupper(ch = *t++)) - ch = tolower(ch); + if (isupper((unsigned char)(ch = *t++))) + ch = tolower((unsigned char)ch); if (ch != pch) break; }