vlib: null terminate elog string
Type: fix
Fixes:
@@ -252,7 +252,7 @@ vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt, ...)
ed = ELOG_DATA (&vlib_global_main.elog_main, ee);
ed->log_level = level;
ed->string_index =
- elog_string (&vlib_global_main.elog_main, "%v", e->string);
+ elog_string (&vlib_global_main.elog_main, "%v%c", e->string, 0);
}
lm->next = (lm->next + 1) % lm->size;
