From 5e8dfcfe5409f0eb628642a173e4f69487942e8b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 7 May 2007 05:58:02 +0000 Subject: we werent dropping it in screen, we were dropping it in prop --- openbox/prop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/prop.c') 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 */ -- cgit v1.2.3