summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/base64.c')
-rw-r--r--src/lib/libc/net/base64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/base64.c b/src/lib/libc/net/base64.c
index 59788bee1b..a2055f5cc3 100644
--- a/src/lib/libc/net/base64.c
+++ b/src/lib/libc/net/base64.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: base64.c,v 1.1 1997/03/13 19:07:22 downsj Exp $ */ 1/* $OpenBSD: base64.c,v 1.2 1997/07/09 01:08:24 millert Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996 by Internet Software Consortium. 4 * Copyright (c) 1996 by Internet Software Consortium.
@@ -278,7 +278,7 @@ b64_pton(src, target, targsize)
278 278
279 case 2: /* Valid, means one byte of info */ 279 case 2: /* Valid, means one byte of info */
280 /* Skip any number of spaces. */ 280 /* Skip any number of spaces. */
281 for (NULL; ch != '\0'; ch = *src++) 281 for (; ch != '\0'; ch = *src++)
282 if (!isspace(ch)) 282 if (!isspace(ch))
283 break; 283 break;
284 /* Make sure there is another trailing = sign. */ 284 /* Make sure there is another trailing = sign. */
@@ -293,7 +293,7 @@ b64_pton(src, target, targsize)
293 * We know this char is an =. Is there anything but 293 * We know this char is an =. Is there anything but
294 * whitespace after it? 294 * whitespace after it?
295 */ 295 */
296 for (NULL; ch != '\0'; ch = *src++) 296 for (; ch != '\0'; ch = *src++)
297 if (!isspace(ch)) 297 if (!isspace(ch))
298 return (-1); 298 return (-1);
299 299