From eacc2982fbf7e0c0b69508b57f85e839d1ba1013 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 9 Apr 2016 20:42:59 +0200 Subject: [PATCH 1/1] base64: Use para_isspace() everywhere. Should not matter because we only test for zero, but let's be consistent. --- base64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base64.c b/base64.c index d9fa483b..cee51571 100644 --- 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++) - if (!isspace(ch)) + if (!para_isspace(ch)) 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++) - if (!isspace(ch)) + if (!para_isspace(ch)) goto fail; /* * Now make sure for cases 2 and 3 that the "extra" -- 2.39.2