diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-06-30 09:53:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-06-30 09:53:52 +0000 |
| commit | ffa4c7f3414944869016497a4f560c24b9d8b3e9 (patch) | |
| tree | a0e234cd369a1cefc29832d5d9d8b885ddcbf6bd /src/Util.cc | |
| parent | 18064df19f670589b9387c194b55345c717473db (diff) | |
sync with bb. mostly cleanups in Window.cc
Diffstat (limited to 'src/Util.cc')
| -rw-r--r-- | src/Util.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Util.cc b/src/Util.cc index 9dadb3e1..51477423 100644 --- a/src/Util.cc +++ b/src/Util.cc @@ -188,8 +188,9 @@ string textPropertyToString(Display *display, XTextProperty& text_prop) { string ret; if (text_prop.value && text_prop.nitems > 0) { - ret = (char *) text_prop.value; - if (text_prop.encoding != XA_STRING) { + if (text_prop.encoding == XA_STRING) { + ret = (char *) text_prop.value; + } else { text_prop.nitems = strlen((char *) text_prop.value); char **list; |
