From 65a717130da9defdbbb57928744381f3a197112b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 11 Aug 2023 16:33:28 +0200 Subject: Abide by my own coding standards --- b32.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/b32.c b/b32.c index a116769..b3c05d4 100644 --- a/b32.c +++ b/b32.c @@ -38,11 +38,10 @@ b32toa(char *dst, const char *src, size_t len) c = src[i + j]; vs[j] = ctov[(uint8_t)c]; if (vs[j] == 255) { - if (c == '=' && j >= 8 - pad) { + if (c == '=' && j >= 8 - pad) vs[j] = 0; - } else { + else return false; - } } } -- cgit v1.2.3