summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--RELNOTES2
-rw-r--r--common/print.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/RELNOTES b/RELNOTES
index 693c9a08..0c22bfef 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -54,6 +54,8 @@ suggested fixes to <dhcp-users@isc.org>.
Changes since 4.0.1
+- Remove infinite loop in token_print_indent_concat().
+
- Validate the argument to the -p option.
- The notorious 'option <unknown> ... larger than buffer' log line,
diff --git a/common/print.c b/common/print.c
index f172cf76..a95198d7 100644
--- a/common/print.c
+++ b/common/print.c
@@ -1108,6 +1108,7 @@ int token_print_indent_concat (FILE *file, int col, int indent,
len = strlen (s);
strcpy (u, s);
u += len;
+ s = va_arg (list, char *);
}
va_end (list);