projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1832 from rubenk/check-for-c99-compiler
[collectd.git]
/
src
/
daemon
/
utils_subst.c
diff --git
a/src/daemon/utils_subst.c
b/src/daemon/utils_subst.c
index
43634df
..
1bc28f7
100644
(file)
--- a/
src/daemon/utils_subst.c
+++ b/
src/daemon/utils_subst.c
@@
-29,7
+29,9
@@
*/
#include "collectd.h"
*/
#include "collectd.h"
+
#include "common.h"
#include "common.h"
+#include "utils_subst.h"
char *subst (char *buf, size_t buflen, const char *string, size_t off1, size_t off2,
const char *replacement)
char *subst (char *buf, size_t buflen, const char *string, size_t off1, size_t off2,
const char *replacement)
@@
-101,7
+103,7
@@
char *asubst (const char *string, int off1, int off2, const char *replacement)
len = off1 + strlen (replacement) + strlen (string) - off2 + 1;
len = off1 + strlen (replacement) + strlen (string) - off2 + 1;
- buf =
(char *)
malloc (len);
+ buf = malloc (len);
if (NULL == buf)
return NULL;
if (NULL == buf)
return NULL;