summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-07-16 14:04:45 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-07-16 14:04:45 +0000
commita7582293ba261dc3e7aecf2d0287755051b6e957 (patch)
tree39b770961cfef3defae7e2dae33ebd05b9e18839 /app/cwm/conf.c
parentacc83aa13bbb8067fcb15630c2f9f62b41db4009 (diff)
max -> nitems
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index 058feb52b..067e4ede8 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.143 2013/07/15 14:50:44 okan Exp $
+ * $OpenBSD: conf.c,v 1.144 2013/07/16 14:04:44 okan Exp $
*/
#include <sys/param.h>
@@ -288,7 +288,7 @@ conf_clear(struct conf *c)
free(mb);
}
- for (i = 0; i < CWM_COLOR_MAX; i++)
+ for (i = 0; i < CWM_COLOR_NITEMS; i++)
free(c->color[i]);
free(c->font);