diff --git a/includes/colors.c b/includes/colors.c index 1a26603..05cf86b 100644 --- a/includes/colors.c +++ b/includes/colors.c @@ -143,14 +143,15 @@ static void b(char * const str) { if (strlen(token) > 1) { printf("%s", token + 1); } - } else if (c == 'x' && strlen(token) > 3) { - if (isxdigit(token[1]) && isxdigit(token[2]) && isxdigit(token[3])) { - hexspan(token + 1); //exclude x - if (strlen(token) > 4){ - printf("%s", token + 4); - } - printf(""); + } else if ((c == 'x' && strlen(token) > 3) && + (isxdigit(token[1]) && + isxdigit(token[2]) && + isxdigit(token[3]))) { + hexspan(token + 1); //exclude x + if (strlen(token) > 4){ + printf("%s", token + 4); } + printf(""); } else { printf("%s", token); }