--- files.org Sun Feb 4 13:43:32 2001 +++ files.c Wed Jul 4 15:58:44 2001 @@ -533,13 +533,16 @@ if (tokenize(buf+2, 2, zz) == 2) { u16b type = (u16b)strtol(zz[0], NULL, 0); - byte color = color_char_to_attr(zz[1][0]); + int color = color_char_to_attr(zz[1][0]); /* Ignore illegal types */ if (type >= MSG_MAX) return (1); + /* Ignore illegal color */ + if (color < 0) return (1); + /* Store the color */ - message__color[type] = color; + message__color[type] = (byte)color; /* Success */ return (0);