aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc6
-rw-r--r--utils/src/ping_server.cc2
2 files changed, 4 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;
diff --git a/utils/src/ping_server.cc b/utils/src/ping_server.cc
index faf86fb64..5482c2b1c 100644
--- a/utils/src/ping_server.cc
+++ b/utils/src/ping_server.cc
@@ -16,6 +16,8 @@
#include <hicn/transport/interfaces/socket_producer.h>
#ifndef _WIN32
#include <hicn/transport/utils/daemonizator.h>
+#else
+#include <openssl/applink.c>
#endif
#include <hicn/transport/utils/signer.h>
#include <hicn/transport/utils/string_tokenizer.h>