Browse Source

service: mii: Limit checks to string size

nce_cpp
german77 2 years ago
parent
commit
107ff81582
  1. 2
      src/core/hle/service/mii/mii_types.h

2
src/core/hle/service/mii/mii_types.h

@ -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…
Cancel
Save