summaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-03-08 21:11:55 +0100
committerMauro Sardara <msardara@cisco.com>2019-03-11 09:53:15 +0000
commitf14470a4e352b15aea76a8c6176c409c595cf534 (patch)
treec5270abcd37dc5c05a42f399377318002f166f35 /libtransport
parent0f727c8ee35fffa45bfe1fc4b55892bd4b91fa56 (diff)
[HICN-105] Errors during execution of ping and hiperf
Change-Id: I92e26b1c2fd2e837825d3be8cfc991008b2aee7a Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
index 515f88c5b..585d80f8c 100644
--- a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
+++ b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
@@ -78,8 +78,7 @@ std::unique_ptr<RouteToSelfCommand> createCommandRoute(
#ifndef _WIN32
strcpy(command->symbolic_or_connid, identifier);
#else
- strcpy_s(command->symbolic_or_connid,
- strlen(command->symbolic_or_connid), identifier);
+ strcpy_s(command->symbolic_or_connid, 16, identifier);
#endif
command->cost = 1;
command->len = (uint8_t)prefix_length;
@@ -99,8 +98,7 @@ std::unique_ptr<DeleteSelfConnectionCommand> createCommandDeleteConnection() {
#ifndef _WIN32
strcpy(command->symbolic_or_connid, identifier);
#else
- strcpy_s(command->symbolic_or_connid,
- strlen(command->symbolic_or_connid), identifier);
+ strcpy_s(command->symbolic_or_connid, 16, identifier);
#endif
return command;