Hi there, I think there is a bug in the function idxoftag(const char *t), line 863 exactly. In the hg tip that line looks like:
for(i = 0; (i < LENGTH(tags)) && strcmp(tags[i], t); i++);
and should be, eg:
for(i = 0; t && (i < LENGTH(tags)) && strcmp(tags[i], t); i++);
due to t could be NULL (modkey+0, modkey+shift+0), so strcmp would crash dwm.
Kind regards,
Nibble
