Ensure the string is 0-terminated

This commit is contained in:
Pim van Pelt
2023-02-05 11:32:48 +00:00
parent 5e9f9ef218
commit ccea08b95d

View File

@ -524,7 +524,7 @@ lcp_itf_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_create)
if (!sup_lip)
return NULL;
name = format (name, "%s.%d", sup_lip->lip_host_name, sw->sub.id);
name = format (name, "%s.%d%c", sup_lip->lip_host_name, sw->sub.id, 0);
LCP_IF_INFO (
"interface_%s: %U has parent %U, auto-creating LCP with host-if %s",