diff options
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-object-tree.c | 2 |
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; |