diff options
author | 2013-11-29 19:00:50 +0000 | |
---|---|---|
committer | 2013-11-29 19:00:50 +0000 | |
commit | 80c62621bb25d2491e07ab57f489fdca1ee0d448 (patch) | |
tree | 01dd28d9a1e9f248b9742f6e236b4d071b5e9e49 /lib/libskey/put.c | |
parent | Don't try to reuse _initial_thread in the fork() wrapper, as the (diff) | |
download | wireguard-openbsd-80c62621bb25d2491e07ab57f489fdca1ee0d448.tar.xz wireguard-openbsd-80c62621bb25d2491e07ab57f489fdca1ee0d448.zip |
fairly simple unsigned char casts for ctype
ok krw
Diffstat (limited to 'lib/libskey/put.c')
-rw-r--r-- | lib/libskey/put.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libskey/put.c b/lib/libskey/put.c index 1177a364a65..85d00f6892c 100644 --- a/lib/libskey/put.c +++ b/lib/libskey/put.c @@ -8,7 +8,7 @@ * * Dictionary lookup and extraction. * - * $OpenBSD: put.c,v 1.13 2003/04/03 17:48:50 millert Exp $ + * $OpenBSD: put.c,v 1.14 2013/11/29 19:00:51 deraadt Exp $ */ #include <stdio.h> @@ -492,10 +492,10 @@ static void standard(char *word) { while (*word) { - if (!isascii(*word)) + if (!isascii((unsigned char)*word)) break; - if (islower(*word)) - *word = toupper(*word); + if (islower((unsigned char)*word)) + *word = toupper((unsigned char)*word); if (*word == '1') *word = 'L'; if (*word == '0') |