From: ellson Date: Fri, 6 Jun 2008 18:15:27 +0000 (+0000) Subject: back out previous change X-Git-Tag: LAST_LIBGRAPH~32^2~3967 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7384b228a2f52341f04620b241fe9f99e2bf8e8a;p=graphviz back out previous change --- diff --git a/cmd/tools/colxlate.c b/cmd/tools/colxlate.c index fccac6619..d5ccdb23a 100644 --- a/cmd/tools/colxlate.c +++ b/cmd/tools/colxlate.c @@ -75,11 +75,9 @@ char *colorxlate(char *str, char *buf) { static hsbcolor_t *last; unsigned char canon[128]; - char *p, *cp = NULL; + char *p; hsbcolor_t fake; - if ((cp = strstr(str, ":"))) /* consider only 1st element of colorlists */ - *cp = '\0'; if ((last == NULL) || (last->name[0] != str[0]) || (strcmp(last->name, str))) { fake.name = (char *) canoncolor(str, canon); @@ -99,8 +97,6 @@ char *colorxlate(char *str, char *buf) } else sprintf(buf, "%.3f %.3f %.3f", ((double) last->h) / 255, ((double) last->s) / 255, ((double) last->b) / 255); - if (cp) /* restore colorlists */ - cp = ":"; return buf; } #else