summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 380be79)
raw | patch | inline | side by side (parent: 380be79)
author | Florian Forster <octo@huhu.verplant.org> | |
Sun, 21 Dec 2008 02:00:51 +0000 (03:00 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 21 Dec 2008 02:00:51 +0000 (03:00 +0100) |
A leftover from the previous setting, a hard-coded maximum, was forgotten.
src/utils_subst.c | patch | blob | history |
diff --git a/src/utils_subst.c b/src/utils_subst.c
index 3c9fe5a27d4a34436aff902d847550113c5af64f..640007c705e125876e520fa87a331ecb389b0c41 100644 (file)
--- a/src/utils_subst.c
+++ b/src/utils_subst.c
strncpy (buf, temp, buflen);
}
- if (i >= 100)
+ if (i >= buflen)
{
WARNING ("subst_string: Loop exited after %zu iterations: "
"string = %s; needle = %s; replacement = %s;",