summaryrefslogtreecommitdiff
path: root/domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'domain.c')
-rw-r--r--domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/domain.c b/domain.c
index f9fb48df003..6098f67cd33 100644
--- a/domain.c
+++ b/domain.c
@@ -397,7 +397,7 @@ int kdbus_domain_make_user(struct kdbus_cmd_make *cmd, char **name)
}
}
- if (!KDBUS_ITEMS_END(item, cmd))
+ if (!KDBUS_ITEMS_END(item, cmd->items, KDBUS_ITEMS_SIZE(cmd, items)))
return -EINVAL;
if (!name)