aboutsummarylogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe2007-05-10 13:49:17 +0200
committerAnselm R. Garbe2007-05-10 13:49:17 +0200
commit05f6d31a69d95e8a39a7f65d158dadc9a66b0193 (patch)
treed0481dd91005fcf26ee9de4b80b7889313b760dc /client.c
parentf4961a323be2dda8891b0ae26c73221bdab8185f (diff)
downloadaur-05f6d31a69d95e8a39a7f65d158dadc9a66b0193.tar.gz
small fix of fix
Diffstat (limited to 'client.c')
-rw-r--r--client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.c b/client.c
index 64da34374a1e..3db14f5c9457 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)