summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-09-24 04:12:23 +0200
committergerman77 <juangerman-13@hotmail.com>2023-09-24 04:14:37 +0200
commitbb28f4a0c4f457bc19ecfe550437644ebbc21a47 (patch)
tree8c96d11bd0a8746a9bfdf9d1bc15aacd068a4d32
parentservice: hid: Set last connected controller as active (diff)
downloadyuzu-bb28f4a0c4f457bc19ecfe550437644ebbc21a47.tar
yuzu-bb28f4a0c4f457bc19ecfe550437644ebbc21a47.tar.gz
yuzu-bb28f4a0c4f457bc19ecfe550437644ebbc21a47.tar.bz2
yuzu-bb28f4a0c4f457bc19ecfe550437644ebbc21a47.tar.lz
yuzu-bb28f4a0c4f457bc19ecfe550437644ebbc21a47.tar.xz
yuzu-bb28f4a0c4f457bc19ecfe550437644ebbc21a47.tar.zst
yuzu-bb28f4a0c4f457bc19ecfe550437644ebbc21a47.zip
-rw-r--r--src/core/hle/service/mii/mii_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/mii/mii_types.h b/src/core/hle/service/mii/mii_types.h
index f43efd83c..08c6029df 100644
--- a/src/core/hle/service/mii/mii_types.h
+++ b/src/core/hle/service/mii/mii_types.h
@@ -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) {