aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vlib/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/log.c b/src/vlib/log.c
index 27d2e16b006..1bf19b0c2ea 100644
--- a/src/vlib/log.c
+++ b/src/vlib/log.c
@@ -187,6 +187,7 @@ vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt, ...)
indent = vec_len (l);
}
fmt = format (0, "%%-%uU [%%-6U]: ", lm->max_class_name_length);
+ vec_terminate_c_string (fmt);
l = format (l, (char *) fmt, format_vlib_log_class, class,
format_vlib_log_level, level);
vec_free (fmt);