Clans: caught more unnecessary strcpy_trunc

Signed-off-by: zeph <zephyrzefa15@gmail.com>
This commit is contained in:
zeph 2025-12-10 20:44:29 +01:00
parent 08091994d9
commit c1cc185009
No known key found for this signature in database

View File

@ -485,7 +485,7 @@ namespace clan
}
};
strcpy_trunc(memInfo->updatable.description, description_str.c_str());
strcpy_trunc(memInfo->updatable.description, description_str);
return SCE_NP_CLANS_SUCCESS;
}
@ -538,9 +538,6 @@ namespace clan
uint32_t status_int = info.child("status").text().as_uint();
std::string description_str = info.child("description").text().as_string();
char description_char[256] = {0};
strcpy_trunc(description_char, description_str);
SceNpClansMemberEntry entry = SceNpClansMemberEntry
{
.npid = npid,
@ -548,7 +545,7 @@ namespace clan
.status = static_cast<SceNpClansMemberStatus>(status_int),
};
strcpy_trunc(entry.updatable.description, description_char);
strcpy_trunc(entry.updatable.description, description_str);
memList[i] = entry;
i++;