summaryrefslogtreecommitdiff
path: root/src/shared/bus-get-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/bus-get-properties.c')
-rw-r--r--src/shared/bus-get-properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-get-properties.c b/src/shared/bus-get-properties.c
index feb6d3807f..8b4f66b22e 100644
--- a/src/shared/bus-get-properties.c
+++ b/src/shared/bus-get-properties.c
@@ -130,7 +130,7 @@ int bus_property_get_rlimit(
int z;
/* Chop off "Soft" suffix */
- s = is_soft ? strndupa(property, is_soft - property) : property;
+ s = is_soft ? strndupa_safe(property, is_soft - property) : property;
/* Skip over any prefix, such as "Default" */
assert_se(p = strstr(s, "Limit"));