summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-12-22 12:25:49 +0100
committerDamjan Marion <damarion@cisco.com>2021-12-22 12:26:57 +0100
commit4926cdd1bf27370ab9b254c9a9733bec0dc30896 (patch)
tree763a7d519259157be05dc34331c7e93daae3363d /src
parent68501d369c65faa67b4afc5c528e7eb04c097fc4 (diff)
vlib: null terminate elog string
Type: fix Fixes: bc867c3 Change-Id: Ibcdb46d3b322195f5573e5ec93b31e177acaca49 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vlib/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/log.c b/src/vlib/log.c
index fc67a1f8903..07561d98cf8 100644
--- a/src/vlib/log.c
+++ b/src/vlib/log.c
@@ -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;