diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1999-11-04 04:30:44 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1999-11-04 04:30:44 +0000 |
| commit | 9ea99d349bf2c06e24b9fd56a8d3dca1b6546581 (patch) | |
| tree | 5d83a93533506a2a91291e90e79663d9bc778009 /lib/libc/net/base64.c | |
| parent | 93548d79ba7db735b871ff5b15bbc6be66ce385b (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/base64.c')
| -rw-r--r-- | lib/libc/net/base64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/base64.c b/lib/libc/net/base64.c index 1a4909f8bb9c..1301b6ad75c5 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); /* |
