diff options
Diffstat (limited to 'src/portable/portable.c')
-rw-r--r-- | src/portable/portable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c index 48d99c0ca2..8ccb8f5228 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -718,7 +718,7 @@ static int unit_file_is_active( at = strchr(name, '@'); assert(at); - prefix = strndupa(name, at + 1 - name); + prefix = strndupa_safe(name, at + 1 - name); joined = strjoina(prefix, "*", at + 1); r = sd_bus_message_append_strv(m, STRV_MAKE(joined)); |