max -> nitems

This commit is contained in:
okan
2013-07-16 14:04:44 +00:00
parent ae4ab06559
commit ca416b6b82
3 changed files with 5 additions and 5 deletions

View File

@@ -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;