Skip to content
Snippets Groups Projects
Commit a5f62739 authored by rswindell's avatar rswindell
Browse files

Set total_colors to at least MIN_COLORS (for JS console.color_list array).

parent 61c9cadf
No related branches found
No related tags found
No related merge requests found
......@@ -443,14 +443,9 @@ BOOL read_attr_cfg(scfg_t* cfg, char* error)
cfg->color=p;
cfg->color[cfg->total_colors]=attrstr(str);
}
#if 0 /* Need to support v2.x attr.cfg with fewer colors */
if(cfg->total_colors<MIN_COLORS) {
sprintf(error,"Less than MIN_COLORS (%lu<%u) defined in %s"
,cfg->total_colors,MIN_COLORS,fname);
return(FALSE);
}
#endif
fclose(instream);
if(cfg->total_colors<MIN_COLORS)
cfg->total_colors=MIN_COLORS;
return(TRUE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment