aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/config/controlRemoveListener.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/config/controlRemoveListener.c')
-rw-r--r--hicn-light/src/hicn/config/controlRemoveListener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-light/src/hicn/config/controlRemoveListener.c b/hicn-light/src/hicn/config/controlRemoveListener.c
index 50581a8d9..545e189c0 100644
--- a/hicn-light/src/hicn/config/controlRemoveListener.c
+++ b/hicn-light/src/hicn/config/controlRemoveListener.c
@@ -99,7 +99,7 @@ if (!utils_ValidateSymbolicName(listenerId) &&
parcMemory_AllocateAndClear(sizeof(remove_listener_command));
// fill payload
//removeListenerCommand->listenerId = atoi(listenerId);
- strncpy(removeListenerCommand->symbolicOrListenerid, listenerId, strlen(listenerId));
+ snprintf(removeListenerCommand->symbolicOrListenerid, SYMBOLIC_NAME_LEN, "%s", listenerId);
// send message and receive response
struct iovec *response =