summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-02 14:50:15 +0200
committerLennart Poettering <lennart@poettering.net>2019-04-02 14:54:42 +0200
commita7798cd81b11205811e8d6e848e23b8b285f2bd8 (patch)
tree35719d03660d0adb21a1aaba3d699aa3d2978720 /src/libsystemd/sd-login
parent0c21dafb54dea7564c6a0f063492926f495006b9 (diff)
downloadsystemd-a7798cd81b11205811e8d6e848e23b8b285f2bd8.tar.gz
tree-wide: use reallocarray() where appropriate
Diffstat (limited to 'src/libsystemd/sd-login')
-rw-r--r--src/libsystemd/sd-login/sd-login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-login/sd-login.c b/src/libsystemd/sd-login/sd-login.c
index 07f21e84de..0dc368e6e2 100644
--- a/src/libsystemd/sd-login/sd-login.c
+++ b/src/libsystemd/sd-login/sd-login.c
@@ -818,7 +818,7 @@ _public_ int sd_get_uids(uid_t **users) {
uid_t *t;
n = MAX(16, 2*r);
- t = realloc(l, sizeof(uid_t) * n);
+ t = reallocarray(l, sizeof(uid_t), n);
if (!t)
return -ENOMEM;