Move from memset to memset_s.

This adds the extra bounds checks and panics if there is a violation.

Change-Id: I9db3ca44be4f9c39964d912b57fe7b68e2792bc1
diff --git a/test/hftest/hftest_common.c b/test/hftest/hftest_common.c
index e1b4602..4a3f0df 100644
--- a/test/hftest/hftest_common.c
+++ b/test/hftest/hftest_common.c
@@ -106,8 +106,7 @@
 			}
 			/*
 			 * It's easier to put the comma at the start of the line
-			 * than the end even
-			 * though the JSON looks a bit funky.
+			 * than the end even though the JSON looks a bit funky.
 			 */
 			HFTEST_LOG("       %c\"%s\"",
 				   tests_in_suite ? ',' : ' ', test->name);
@@ -136,7 +135,7 @@
 {
 	/* Prepare the context. */
 	struct hftest_context *ctx = hftest_get_context();
-	memset(ctx, 0, sizeof(*ctx));
+	memset_s(ctx, sizeof(*ctx), 0, sizeof(*ctx));
 	ctx->abort = abort;
 
 	/* Run any set up functions. */