string: Compare strings without assigned number of characters

Currently Helios board is mistaken as Heli board.

BUG=b:136568791
TEST=manually test on a helios board,
mosys can identify the platform id correctly

Change-Id: Ibea88b78466a788e8c255b4727c6baaef5c40a8b
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1684260
Tested-by: Philip Chen <philipchen@chromium.org>
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@google.com>
diff --git a/lib/string/string.c b/lib/string/string.c
index 6cc5d4b..ef871a4 100644
--- a/lib/string/string.c
+++ b/lib/string/string.c
@@ -374,13 +374,13 @@
 		lprintf(LOG_SPEW, "%s: \"%s\" ?= \"%s\": ",
 		                  __func__, str, arr[i]);
 		if (cs) {
-			if (!strncmp(str, arr[i], strlen(arr[i]))) {
+			if (!strcmp(str, arr[i])) {
 				ret = arr[i];
 				lprintf(LOG_SPEW, "Yes.\n");
 				break;
 			}
 		} else {
-			if (!strncasecmp(str, arr[i], strlen(arr[i]))) {
+			if (!strcasecmp(str, arr[i])) {
 				ret = arr[i];
 				lprintf(LOG_SPEW, "Yes.\n");
 				break;