X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=color.c;h=ca5a32d3bc6ccec7d4e93c2f8f6b285a53b22dcb;hp=bd09446c17ef9a7654b65960e165c85c14d7097b;hb=b2e6a24448a9e49e0766ab4f32163580eeff469e;hpb=11018ebcc1cb1c002fc3488d247a43774ca408d7 diff --git a/color.c b/color.c index bd09446c..ca5a32d3 100644 --- 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';