Fix buffer overrun by limiting length of color string to 8 characters.