From 883e09b2eb8b6a42289bc5a64294df4122d90e38 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 5 Oct 2007 18:30:01 +0200 Subject: removing NULL-terminating **tags definition in config.h --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 6a21d3f..c9495ec 100644 --- a/dwm.c +++ b/dwm.c @@ -1467,7 +1467,7 @@ setup(void) { /* init tags */ compileregs(); - for(ntags = 0; tags[ntags]; ntags++); + ntags = sizeof tags / sizeof tags[0]; seltags = emallocz(sizeof(Bool) * ntags); seltags[0] = True; -- cgit v1.2.3-54-g00ecf