mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
service: mii: Limit checks to string size
This commit is contained in:
parent
0993c71335
commit
bb28f4a0c4
|
@ -614,7 +614,7 @@ struct Nickname {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t index = 1;
|
std::size_t index = 1;
|
||||||
while (data[index] != 0) {
|
while (index < MaxNameSize && data[index] != 0) {
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
while (index < MaxNameSize && data[index] == 0) {
|
while (index < MaxNameSize && data[index] == 0) {
|
||||||
|
|
Loading…
Reference in a new issue