Move from memcpy to memcpy_s.

Change-Id: If7d53c6e54428f01f14528c3f281331d308af56a
diff --git a/test/hftest/inc/hftest_impl.h b/test/hftest/inc/hftest_impl.h
index a86069c..d75b402 100644
--- a/test/hftest/inc/hftest_impl.h
+++ b/test/hftest/inc/hftest_impl.h
@@ -283,7 +283,8 @@
 		ASSERT_EQ(run_res.sleep.ns, HF_SLEEP_INDEFINITE);             \
                                                                               \
 		/* Send the selected service to run and let it be handled. */ \
-		memcpy(send_buffer->payload, service, msg_length);            \
+		memcpy_s(send_buffer->payload, SPCI_MSG_PAYLOAD_MAX, service, \
+			 msg_length);                                         \
 		spci_message_init(send_buffer, msg_length, vm_id,             \
 				  hf_vm_get_id());                            \
                                                                               \