diff -r 17a935c3017f -r 107746bd83f0 dwm.c --- a/dwm.c Wed Oct 03 16:25:25 2007 +0200 +++ b/dwm.c Fri Oct 05 18:30:01 2007 +0200 @@ -1467,7 +1467,7 @@ /* init tags */ compileregs(); - for(ntags = 0; tags[ntags]; ntags++); + ntags = sizeof tags / sizeof tags[0]; seltags = emallocz(sizeof(Bool) * ntags); seltags[0] = True;