projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb68407
)
dont get a null at the end of the data, so use strndup
author
Dana Jansens
<danakj@orodu.net>
Mon, 14 Apr 2003 22:42:10 +0000
(22:42 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 14 Apr 2003 22:42:10 +0000
(22:42 +0000)
openbox/prop.c
patch
|
blob
|
history
diff --git
a/openbox/prop.c
b/openbox/prop.c
index
27941ac
..
a97b66d
100644
(file)
--- a/
openbox/prop.c
+++ b/
openbox/prop.c
@@
-303,7
+303,7
@@
gboolean prop_get_string_utf8(Window win, Atom prop, char **ret)
guint num;
if (get_all(win, prop, prop_atoms.utf8, 8, (guchar**)&raw, &num)) {
- *ret = g_str
dup(raw
); /* grab the first string from the list */
+ *ret = g_str
ndup(raw, num
); /* grab the first string from the list */
g_free(raw);
return TRUE;
}