summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.c b/client.c
index 64da343..3db14f5 100644
--- a/client.c
+++ b/client.c
@@ -365,9 +365,8 @@ updatetitle(Client *c) {
365 XGetWMName(dpy, c->win, &name); 365 XGetWMName(dpy, c->win, &name);
366 if(!name.nitems) 366 if(!name.nitems)
367 return; 367 return;
368 if(name.encoding == XA_STRING) { 368 if(name.encoding == XA_STRING)
369 strncpy(c->name, (char *)name.value, sizeof c->name - 1); 369 strncpy(c->name, (char *)name.value, sizeof c->name - 1);
370 }
371 else { 370 else {
372 if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success 371 if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success
373 && n > 0 && *list) 372 && n > 0 && *list)