diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-16 21:32:42 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-16 21:32:42 +0000 |
| commit | f8bbe46bce7597304d10d106ae51af43af88ca66 (patch) | |
| tree | 4752404eb5954a02cc3be4922384608be43c5afb /openbox | |
| parent | f17b225daadb483b8736dc0e57a9def68e770ae9 (diff) | |
get all the strings!
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/prop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/prop.c b/openbox/prop.c index 8677de07..c53f2503 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -294,7 +294,7 @@ gboolean prop_get_strings_locale(Window win, Atom prop, char ***ret) g_strfreev(*ret); /* free what we did so far */ break; /* the force is not strong with us */ } - p = strchr(p, '\0'); + p += strlen(p) + 1; } g_free(raw); if (i == num) @@ -328,7 +328,7 @@ gboolean prop_get_strings_utf8(Window win, Atom prop, char ***ret) p = raw; for (i = 0; i < num; ++i) { (*ret)[i] = g_strdup(p); - p = strchr(p, '\0'); + p += strlen(p) + 1; } g_free(raw); return TRUE; |
