author | Anselm R. Garbe <arg@suckless.org> |
Thu, 10 May 2007 13:49:17 +0200 | |
changeset 874 | e42bdee29c92 |
parent 873 | e1af8e712b35 |
child 875 | 73cd10af065a |
--- a/client.c Thu May 10 13:47:44 2007 +0200 +++ b/client.c Thu May 10 13:49:17 2007 +0200 @@ -365,9 +365,8 @@ XGetWMName(dpy, c->win, &name); if(!name.nitems) return; - if(name.encoding == XA_STRING) { + if(name.encoding == XA_STRING) strncpy(c->name, (char *)name.value, sizeof c->name - 1); - } else { if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success && n > 0 && *list)