X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_subst.c;h=9284f7330bac4ad8aa272cf213b545c26000815f;hb=ba6141349270c4ca127e9e0e6e83fc3c6460cf5c;hp=cfa1c7642f0d01b5b5bbdfb2be78dbf38bcb6968;hpb=b76f88c5bafa82e3c939eb65c13acd431e07cc01;p=collectd.git diff --git a/src/daemon/utils_subst.c b/src/daemon/utils_subst.c index cfa1c764..9284f733 100644 --- a/src/daemon/utils_subst.c +++ b/src/daemon/utils_subst.c @@ -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;