Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4df3871
)
Null terminate name string
76/13176/2
author
Dave Barach
<dave@barachs.net>
Thu, 21 Jun 2018 11:33:12 +0000
(07:33 -0400)
committer
Florin Coras
<florin.coras@gmail.com>
Thu, 21 Jun 2018 14:34:55 +0000
(14:34 +0000)
Change-Id: If7bcc6ae3358b5e39bf76481ee58f4dbaa53d895
Signed-off-by: Dave Barach <dave@barachs.net>
src/plugins/mactime/mactime.c
patch
|
blob
|
history
diff --git
a/src/plugins/mactime/mactime.c
b/src/plugins/mactime/mactime.c
index
80d1b1b
..
82bcfae
100644
(file)
--- 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++)
{