max -> nitems
This commit is contained in:
2
parse.y
2
parse.y
@@ -597,7 +597,7 @@ parse_config(const char *filename, struct conf *xconf)
|
||||
(void)strlcpy(xconf->lockpath, conf->lockpath,
|
||||
sizeof(xconf->lockpath));
|
||||
|
||||
for (i = 0; i < CWM_COLOR_MAX; i++)
|
||||
for (i = 0; i < CWM_COLOR_NITEMS; i++)
|
||||
xconf->color[i] = conf->color[i];
|
||||
|
||||
xconf->font = conf->font;
|
||||
|
||||
Reference in New Issue
Block a user