summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-10 13:49:17 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-10 13:49:17 +0200
commitc67dbb28e47b03eca0c7faddcf7c9862c41694b7 (patch)
tree258282155f3a13e7a1a2c8433f08f6ebb3da8152
parentb8bccb4ac5222a01ecd6a5f82997ea2ee3b84b8b (diff)
small fix of fix
-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) {
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)