sd-bus: use memdup_suffix0() where appropriate

This commit is contained in:
Lennart Poettering
2018-11-30 12:02:15 +01:00
parent 84a3568717
commit 1a64f8c63d
+1 -1
View File
@@ -703,7 +703,7 @@ _public_ int sd_bus_get_name_creds(
if (r < 0)
return r;
c->label = strndup(p, sz);
c->label = memdup_suffix0(p, sz);
if (!c->label)
return -ENOMEM;