mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 12:47:56 -05:00
service: mii: Limit checks to string size
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user