aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vpp-oper/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/vpp-oper/interface.cpp')
-rw-r--r--src/plugins/vpp-oper/interface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/vpp-oper/interface.cpp b/src/plugins/vpp-oper/interface.cpp
index 263f56e..eee14e0 100644
--- a/src/plugins/vpp-oper/interface.cpp
+++ b/src/plugins/vpp-oper/interface.cpp
@@ -22,7 +22,8 @@ interface_dump::issue(connection& con)
payload.name_filter_valid = 0;
} else {
payload.name_filter_valid = 1;
- strcpy((char*)payload.name_filter.buf, m_name.c_str());
+ memset(payload.name_filter.buf, 0, payload.name_filter.length);
+ memcpy(payload.name_filter.buf, m_name.c_str(), m_name.length());
}
VAPI_CALL(m_dump->execute());