From b8eca5937fc110e85d426cefba4feff00a20a04a Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Wed, 23 Oct 2019 09:58:42 +0200 Subject: [HICN-350] Minor cleanup in control API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5c3705aa439a1cf6bdca915f82c0c014771cc542 Signed-off-by: Jordan Augé --- hicn-light/src/hicn/config/controlRemoveListener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hicn-light/src/hicn/config/controlRemoveListener.c') 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 = -- cgit 1.2.3-korg