summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-11-25 18:58:31 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-01 00:25:51 +0100
commit5639193139792b48665b9c5d7d7ca165af124be6 (patch)
tree94d6203b154a3a27a9c31da491bd20c7de7cf957
parent8cd328d82e800fc6e2fe810500eea025ffbd93c1 (diff)
nspawn: use realloc_multiply() where it makes sense
-rw-r--r--src/nspawn/nspawn-mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c
index d72b0a0b9b..9d76f4a381 100644
--- a/src/nspawn/nspawn-mount.c
+++ b/src/nspawn/nspawn-mount.c
@@ -47,7 +47,7 @@ CustomMount* custom_mount_add(CustomMount **l, unsigned *n, CustomMountType t) {
assert(t >= 0);
assert(t < _CUSTOM_MOUNT_TYPE_MAX);
- c = realloc(*l, (*n + 1) * sizeof(CustomMount));
+ c = realloc_multiply(*l, (*n + 1), sizeof(CustomMount));
if (!c)
return NULL;