fix #3566 (third try)

This commit is contained in:
condret 2015-10-23 18:02:05 +00:00
parent 764eb84be6
commit 742b4370b9

View File

@ -167,12 +167,12 @@ R_API char *r_cons_pal_parse (const char *str) {
r = rgbnum (p[4], '0');
g = rgbnum (p[5], '0');
b = rgbnum (p[6], '0');
r_cons_rgb_str (out, r, g, b, 0);
r_cons_rgb_str (out + strlen(out), r, g, b, 1);
} else if (strlen (s) == 10) {
r = rgbnum (p[4], p[5]);
g = rgbnum (p[6], p[7]);
b = rgbnum (p[8], p[9]);
r_cons_rgb_str (out, r, g, b, 0);
r_cons_rgb_str (out + strlen(out), r, g, b, 1);
}
}
for (i = 0; colors[i].name; i++) {