X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_subst.c;h=1bc28f724ea22e927e6981b09d28fd0d8de2bf8c;hb=e2ff4dd149e85527eba7a38a8f38aeb3b548f39c;hp=cfa1c7642f0d01b5b5bbdfb2be78dbf38bcb6968;hpb=82c9b0daf5ff90d01f4a4371f11727cd613e4b01;p=collectd.git diff --git a/src/daemon/utils_subst.c b/src/daemon/utils_subst.c index cfa1c764..1bc28f72 100644 --- a/src/daemon/utils_subst.c +++ b/src/daemon/utils_subst.c @@ -29,6 +29,7 @@ */ #include "collectd.h" + #include "common.h" #include "utils_subst.h" @@ -102,7 +103,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;