base64: Use para_isspace() everywhere.
[paraslash.git] / base64.c
index d9fa483b23b4e33983382b2f6a4142e8016d8d89..cee51571a7416b396583932be2376398e0670573 100644 (file)
--- a/base64.c
+++ b/base64.c
@@ -104,7 +104,7 @@ int base64_decode(char const *src, size_t encoded_size, char **result,
                case 2: /* Valid, means one byte of info */
                        /* Skip any number of spaces. */
                        for (; ch != '\0'; ch = *src++)
                case 2: /* Valid, means one byte of info */
                        /* Skip any number of spaces. */
                        for (; ch != '\0'; ch = *src++)
-                               if (!isspace(ch))
+                               if (!para_isspace(ch))
                                        break;
                        /* Make sure there is another trailing = sign. */
                        if (ch != PAD64)
                                        break;
                        /* Make sure there is another trailing = sign. */
                        if (ch != PAD64)
@@ -118,7 +118,7 @@ int base64_decode(char const *src, size_t encoded_size, char **result,
                         * whitespace after it?
                         */
                        for (; ch != '\0'; ch = *src++)
                         * whitespace after it?
                         */
                        for (; ch != '\0'; ch = *src++)
-                               if (!isspace(ch))
+                               if (!para_isspace(ch))
                                        goto fail;
                        /*
                         * Now make sure for cases 2 and 3 that the "extra"
                                        goto fail;
                        /*
                         * Now make sure for cases 2 and 3 that the "extra"