diff -r e1af8e712b35 -r e42bdee29c92 client.c --- 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)