On Thu, Mar 20, 2008 at 01:03:23PM +0100, Nibble wrote: > 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.
You are right! Thanks for this hint. Kind regards, -- Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
