summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/strv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/strv.c b/src/shared/strv.c
index efa648df88..00857e40a7 100644
--- a/src/shared/strv.c
+++ b/src/shared/strv.c
@@ -392,7 +392,7 @@ int strv_push(char ***l, char *value) {
if (m < n)
return -ENOMEM;
- c = realloc(*l, sizeof(char*) * (size_t) m);
+ c = realloc_multiply(*l, sizeof(char*), m);
if (!c)
return -ENOMEM;