X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_subst.c;h=9284f7330bac4ad8aa272cf213b545c26000815f;hb=21058a13ed34ade6d2de0f54e4216b255d033af1;hp=cfa1c7642f0d01b5b5bbdfb2be78dbf38bcb6968;hpb=82c9b0daf5ff90d01f4a4371f11727cd613e4b01;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;