diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-29 17:21:27 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-30 12:02:15 +0100 |
commit | 1a64f8c63d1385be87e9f2bb66e870b943548b34 (patch) | |
tree | 25d0bfad0ff5eed9dd91ac512d53bc39021b8173 /src/libsystemd/sd-bus/bus-control.c | |
parent | 84a35687179142afd627da2836e62e898b4f3ac8 (diff) | |
download | systemd-1a64f8c63d1385be87e9f2bb66e870b943548b34.tar.gz |
sd-bus: use memdup_suffix0() where appropriate
Diffstat (limited to 'src/libsystemd/sd-bus/bus-control.c')
-rw-r--r-- | src/libsystemd/sd-bus/bus-control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-control.c b/src/libsystemd/sd-bus/bus-control.c index 6507ce95f7..7775d2b376 100644 --- a/src/libsystemd/sd-bus/bus-control.c +++ b/src/libsystemd/sd-bus/bus-control.c @@ -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; |