From b6ad58bde953d53ba1e0225c1c6070147682b6e9 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 16 Jul 2013 14:04:44 +0000 Subject: max -> nitems --- conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 058feb5..067e4ed 100644 --- a/conf.c +++ b/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 @@ -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); -- cgit v1.2.3-2-gb3c3