Code

Merge branch 'collectd-5.5'
[collectd.git] / src / daemon / utils_subst.c
index cfa1c7642f0d01b5b5bbdfb2be78dbf38bcb6968..9284f7330bac4ad8aa272cf213b545c26000815f 100644 (file)
@@ -102,7 +102,7 @@ char *asubst (const char *string, int off1, int off2, const char *replacement)
 
        len = off1 + strlen (replacement) + strlen (string) - off2 + 1;
 
-       buf = (char *)malloc (len);
+       buf = malloc (len);
        if (NULL == buf)
                return NULL;