hos: use strcmp for kip name

KIP1 names are NULL terminated, so use strcmp to reduce codesize.
This commit is contained in:
CTCaer
2024-03-27 10:22:09 +02:00
parent 06b7a38d47
commit dca350bfe9
2 changed files with 4 additions and 4 deletions

View File

@@ -712,7 +712,7 @@ static bool _get_fs_exfat_compatible(link_t *info, u32 *hos_revision)
LIST_FOREACH_ENTRY(pkg2_kip1_info_t, ki, info, link)
{
if (strncmp((const char*)ki->kip1->name, "FS", sizeof(ki->kip1->name)))
if (strcmp((char *)ki->kip1->name, "FS"))
continue;
if (!se_calc_sha256_oneshot(sha_buf, ki->kip1, ki->size))