projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/utils_subst.c: Print the warning of the subst_string function when appropriate.
[collectd.git]
/
src
/
utils_subst.c
diff --git
a/src/utils_subst.c
b/src/utils_subst.c
index
3c9fe5a
..
640007c
100644
(file)
--- a/
src/utils_subst.c
+++ b/
src/utils_subst.c
@@
-128,7
+128,7
@@
char *subst_string (char *buf, size_t buflen, const char *string,
strncpy (buf, temp, buflen);
}
- if (i >=
100
)
+ if (i >=
buflen
)
{
WARNING ("subst_string: Loop exited after %zu iterations: "
"string = %s; needle = %s; replacement = %s;",