projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f17b225
)
get all the strings!
author
Dana Jansens
<danakj@orodu.net>
Fri, 16 May 2003 21:32:42 +0000
(21:32 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 16 May 2003 21:32:42 +0000
(21:32 +0000)
openbox/prop.c
patch
|
blob
|
history
diff --git
a/openbox/prop.c
b/openbox/prop.c
index 8677de07efa4fa873ffc4945b5cd9ded35e3b774..c53f250321a627a4021bd3c4af185a05d00c27e9 100644
(file)
--- 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;