2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

service: mii: Limit checks to string size

This commit is contained in:
german77 2023-09-23 20:12:23 -06:00
parent 0993c71335
commit bb28f4a0c4

View file

@ -614,7 +614,7 @@ struct Nickname {
}
std::size_t index = 1;
while (data[index] != 0) {
while (index < MaxNameSize && data[index] != 0) {
index++;
}
while (index < MaxNameSize && data[index] == 0) {