X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_subst.c;h=9284f7330bac4ad8aa272cf213b545c26000815f;hb=810e8f5d687514841ed0ea445764ccc05e8f5299;hp=cfa1c7642f0d01b5b5bbdfb2be78dbf38bcb6968;hpb=5c2993e4121feae745551be182221b31bc23ff97;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;