summaryrefslogtreecommitdiff
path: root/openbox/prop.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-07 05:58:02 +0000
committerDana Jansens <danakj@orodu.net>2007-05-07 05:58:02 +0000
commit5e8dfcfe5409f0eb628642a173e4f69487942e8b (patch)
treec1d3f2ee73e274828ac240881ed0472baaa21266 /openbox/prop.c
parent8d81088eb9c9a23e5458d797d8bf1ec0f110dd68 (diff)
we werent dropping it in screen, we were dropping it in prop
Diffstat (limited to 'openbox/prop.c')
-rw-r--r--openbox/prop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/prop.c b/openbox/prop.c
index 6bd05cc6..0485045e 100644
--- a/openbox/prop.c
+++ b/openbox/prop.c
@@ -328,7 +328,7 @@ gboolean prop_get_strings_locale(Window win, Atom prop, gchar ***ret)
if (get_all(win, prop, prop_atoms.string, 8, (guchar**)&raw, &num)) {
p = raw;
- while (p < raw + num - 1) {
+ while (p < raw + num) {
++count;
strs = g_slist_append(strs, p);
p += strlen(p) + 1; /* next string */
@@ -377,7 +377,7 @@ gboolean prop_get_strings_utf8(Window win, Atom prop, gchar ***ret)
if (get_all(win, prop, prop_atoms.utf8, 8, (guchar**)&raw, &num)) {
p = raw;
- while (p < raw + num - 1) {
+ while (p < raw + num) {
++count;
strs = g_slist_append(strs, p);
p += strlen(p) + 1; /* next string */