app: aboot: Replace strncpy to strlcpy.

Replace strncpy to strlcpy. This is required as strncpy function
does not guarantee that the resultant string is NULL-terminated.
It also does not provide a standard way to check whether truncation
has occurred or not.

Change-Id: Iccde0dc8f3c3b3a9c29fcec8eb011863bc5b803c
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 6987a56..203abc2 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -3172,7 +3172,7 @@
 	}
 
 	/* By default copy raw to response */
-	strncpy(response, RAW_STR, strlen(RAW_STR));
+	strlcpy(response, RAW_STR, MAX_RSP_SIZE);
 
 	/* Mark partiton type for known paritions only */
 	for (n=0; n < ARRAY_SIZE(part_type_known); n++)
@@ -3184,13 +3184,13 @@
 			switch (fs_signature)
 			{
 				case EXT_FS_SIGNATURE:
-					strncpy(response, EXT_STR, strlen(EXT_STR));
+					strlcpy(response, EXT_STR, MAX_RSP_SIZE);
 					break;
 				case EXT_F2FS_SIGNATURE:
-					strncpy(response, F2FS_STR, strlen(F2FS_STR));
+					strlcpy(response, F2FS_STR, MAX_RSP_SIZE);
 					break;
 				case NO_FS:
-					strncpy(response, part_type_known[n].type_response, MAX_RSP_SIZE);
+					strlcpy(response, part_type_known[n].type_response, MAX_RSP_SIZE);
 			}
 		}
 	}