diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-14 23:38:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-14 23:38:54 +0000 |
| commit | e6d1ab217f53fcafe418a75ce184463c6e36e31b (patch) | |
| tree | 0c9069cadc00e669616d26be091bd568939e6d6f /openbox/prop.c | |
| parent | b486929d34cc634ffa94acdb77c60932fd2061e9 (diff) | |
fixes for handling char**s
Diffstat (limited to 'openbox/prop.c')
| -rw-r--r-- | openbox/prop.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |
