mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-26 10:20:59 +01:00
service: mii: Limit checks to string size
This commit is contained in:
parent
0993c71335
commit
bb28f4a0c4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue