Fix compile warning on NetBSD.
authorAndre Noll <maan@systemlinux.org>
Wed, 21 Jan 2009 15:43:41 +0000 (16:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 21 Jan 2009 15:43:41 +0000 (16:43 +0100)
This fixes

color.c:71: warning: array subscript has type 'char'

color.c

diff --git a/color.c b/color.c
index bd09446..d6abf13 100644 (file)
--- 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);