nspawn: use realloc_multiply() where it makes sense

This commit is contained in:
Lennart Poettering
2016-12-01 00:25:51 +01:00
parent 8cd328d82e
commit 5639193139
+1 -1
View File
@@ -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;