Move from strlen to strnlen_s.
Change-Id: I1d25a65e020b45b556723de14ef55a6140229dbb
diff --git a/test/hftest/inc/hftest_impl.h b/test/hftest/inc/hftest_impl.h
index d75b402..34c73e6 100644
--- a/test/hftest/inc/hftest_impl.h
+++ b/test/hftest/inc/hftest_impl.h
@@ -272,7 +272,7 @@
#define HFTEST_SERVICE_SELECT(vm_id, service, send_buffer) \
do { \
struct hf_vcpu_run_return run_res; \
- uint32_t msg_length = strlen(service); \
+ uint32_t msg_length = strnlen_s(service, 64); \
\
/* \
* Let the service configure its mailbox and wait for a \