summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/base64.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-04 04:30:44 +0000
committerache <ache@FreeBSD.org>1999-11-04 04:30:44 +0000
commit96b246d3bd7690f28854662d3ebe0192eef115af (patch)
tree5d83a93533506a2a91291e90e79663d9bc778009 /lib/libc/net/base64.c
parentbf7360672452046e6f50351ef4541014ee98ef91 (diff)
downloadFreeBSD-src-96b246d3bd7690f28854662d3ebe0192eef115af.zip
FreeBSD-src-96b246d3bd7690f28854662d3ebe0192eef115af.tar.gz
Add unsigned char cast to ctype macros arg
Diffstat (limited to 'lib/libc/net/base64.c')
-rw-r--r--lib/libc/net/base64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/base64.c b/lib/libc/net/base64.c
index 1a4909f..1301b6a 100644
--- a/lib/libc/net/base64.c
+++ b/lib/libc/net/base64.c
@@ -206,7 +206,7 @@ b64_pton(src, target, targsize)
tarindex = 0;
while ((ch = *src++) != '\0') {
- if (isspace(ch)) /* Skip whitespace anywhere. */
+ if (isspace((unsigned char)ch)) /* Skip whitespace anywhere. */
continue;
if (ch == Pad64)
@@ -276,7 +276,7 @@ b64_pton(src, target, targsize)
case 2: /* Valid, means one byte of info */
/* Skip any number of spaces. */
for ((void)NULL; ch != '\0'; ch = *src++)
- if (!isspace(ch))
+ if (!isspace((unsigned char)ch))
break;
/* Make sure there is another trailing = sign. */
if (ch != Pad64)
@@ -291,7 +291,7 @@ b64_pton(src, target, targsize)
* whitespace after it?
*/
for ((void)NULL; ch != '\0'; ch = *src++)
- if (!isspace(ch))
+ if (!isspace((unsigned char)ch))
return (-1);
/*
OpenPOWER on IntegriCloud