From 9cfd0425783bc9828739758b374cfe86c20d8a19 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 21 Jan 2009 16:43:41 +0100 Subject: [PATCH] Fix compile warning on NetBSD. This fixes color.c:71: warning: array subscript has type 'char' --- color.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/color.c b/color.c index bd09446c..d6abf13d 100644 --- a/color.c +++ b/color.c @@ -68,11 +68,11 @@ int color_parse(const char *value, char *dst) const char *word = ptr; int val, len = 0; - while (word[len] && !isspace(word[len])) + while (word[len] && !para_isspace(word[len])) len++; ptr = word + len; - while (*ptr && isspace(*ptr)) + while (*ptr && para_isspace(*ptr)) ptr++; val = parse_color(word, len); -- 2.39.5