From e6d1ab217f53fcafe418a75ce184463c6e36e31b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 14 Apr 2003 23:38:54 +0000 Subject: fixes for handling char**s --- openbox/prop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbox/prop.c') diff --git a/openbox/prop.c b/openbox/prop.c index a97b66dc..bce0426b 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -352,11 +352,11 @@ void prop_set_string_utf8(Window win, Atom prop, char *val) void prop_set_strings_utf8(Window win, Atom prop, char **strs) { GString *str; - guint i; + char **s; str = g_string_sized_new(0); - for (i = 0; strs[i]; ++i) { - str = g_string_append(str, strs[i]); + for (s = strs; *s; ++s) { + str = g_string_append(str, *s); str = g_string_append_c(str, '\0'); } XChangeProperty(ob_display, win, prop, prop_atoms.utf8, 8, -- cgit v1.2.3