summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-08-03 20:02:37 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-08-03 20:02:37 +0000
commitbaf72e43951b1fefd23c7d246b76939e3c72fc14 (patch)
treea535c3dab28abbbf177042a757ff1932732b0124 /dbus
parentfbc02654e385556271c3a3f9cdc954b743469584 (diff)
downloaddbus-baf72e43951b1fefd23c7d246b76939e3c72fc14.tar.gz
* dbus/dbus-object-tree.c: Patch by Benjamin Otte
<in7y118 at public.uni-hamburg dot de> - fix invalid read/write reported by valgrind
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-object-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-object-tree.c b/dbus/dbus-object-tree.c
index 407ba6dc..27dc5f17 100644
--- a/dbus/dbus-object-tree.c
+++ b/dbus/dbus-object-tree.c
@@ -935,7 +935,7 @@ allocate_subtree_object (const char *name)
len = strlen (name);
- subtree = dbus_malloc (front_padding + (len + 1));
+ subtree = dbus_malloc (MAX (front_padding + (len + 1), sizeof (DBusObjectSubtree)));
if (subtree == NULL)
return NULL;