New codename for 0.4.
[paraslash.git] / color.c
diff --git a/color.c b/color.c
index bd09446c17ef9a7654b65960e165c85c14d7097b..ca5a32d3bc6ccec7d4e93c2f8f6b285a53b22dcb 100644 (file)
--- a/color.c
+++ b/color.c
@@ -1,7 +1,7 @@
 /** \file color.c Functions for printing colored messages. */
 
 /*
- * Mostly taken from the git source tree, version 1.6.1.76, January 2008.
+ * Mostly taken from the git source tree, version 1.6.1.76, January 2009.
  */
 
 #include "para.h"
@@ -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);
@@ -113,7 +113,7 @@ int color_parse(const char *value, char *dst)
                        }
                }
                if (bg >= 0) {
-                       if (sep++)
+                       if (sep)
                                *dst++ = ';';
                        if (bg < 8) {
                                *dst++ = '4';