aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/mactime/mactime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/mactime/mactime.c b/src/plugins/mactime/mactime.c
index 80d1b1b3e26..82bcfae06fe 100644
--- a/src/plugins/mactime/mactime.c
+++ b/src/plugins/mactime/mactime.c
@@ -218,7 +218,7 @@ static void vl_api_mactime_add_del_range_t_handler
vlib_validate_simple_counter (&mm->drop_counters, dp - mm->devices);
vlib_zero_simple_counter (&mm->drop_counters, dp - mm->devices);
mp->device_name[ARRAY_LEN (mp->device_name) - 1] = 0;
- dp->device_name = format (0, "%s", mp->device_name);
+ dp->device_name = format (0, "%s%c", mp->device_name, 0);
memcpy (dp->mac_address, mp->mac_address, sizeof (mp->mac_address));
for (i = 0; i < clib_net_to_host_u32 (mp->count); i++)
{