summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-04 04:35:33 +0000
committerache <ache@FreeBSD.org>1999-11-04 04:35:33 +0000
commitdc0dd57e24f76d65287942f9b6af74c09129c2d4 (patch)
treeb3041d15a6af6e10b1bb21c088d4efe5fd65480c
parent96b246d3bd7690f28854662d3ebe0192eef115af (diff)
downloadFreeBSD-src-dc0dd57e24f76d65287942f9b6af74c09129c2d4.zip
FreeBSD-src-dc0dd57e24f76d65287942f9b6af74c09129c2d4.tar.gz
unsigned char cast to ctype macros
-rw-r--r--lib/libc/net/rcmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 58be9f0..31a60a6 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -29,6 +29,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
#if defined(LIBC_SCCS) && !defined(lint)
@@ -408,7 +410,7 @@ __ivaliduser(hostf, raddr, luser, ruser)
continue;
}
while (*p != '\n' && *p != ' ' && *p != '\t' && *p != '\0') {
- *p = isupper(*p) ? tolower(*p) : *p;
+ *p = isupper((unsigned char)*p) ? tolower((unsigned char)*p) : *p;
p++;
}
if (*p == ' ' || *p == '\t') {
OpenPOWER on IntegriCloud