X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=blobdiff_plain;f=colorize.c;h=1d83781d6df5ff3fb636312aca4fd24f81753bd5;hp=49879c5db6de0c2450af5b6b0179b4cf3c3fd4f7;hb=aa263791f3e5e06ffd46621fdf9132921f8911a5;hpb=e5d940c200f43f3698b12ee40a2fa3ceb9707b8d diff --git a/colorize.c b/colorize.c index 49879c5..1d83781 100644 --- a/colorize.c +++ b/colorize.c @@ -122,7 +122,7 @@ #define MAX_ATTRIBUTE_CHARS (6 * 2) -#define VERSION "0.62" +#define VERSION "0.63" typedef enum { false, true } bool; @@ -1448,8 +1448,8 @@ has_color_name (const char *str, const char *name) { char *p; - assert (strlen (str)); - assert (strlen (name)); + assert (strlen (str) > 0); + assert (strlen (name) > 0); if (!(*str == *name || *str == toupper (*name))) return false;