mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-24 07:27:32 -05:00
FIX: Wrong user name length validation
This commit is contained in:
parent
9e77e1010e
commit
b1eb8c9c4e
|
|
@ -223,7 +223,7 @@ class LinkRawWireless {
|
|||
LRWLOG("! game name too long");
|
||||
return false;
|
||||
}
|
||||
if (std::strlen(userName) > LINK_RAW_WIRELESS_MAX_GAME_NAME_LENGTH) {
|
||||
if (std::strlen(userName) > LINK_RAW_WIRELESS_MAX_USER_NAME_LENGTH) {
|
||||
LRWLOG("! user name too long");
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -388,7 +388,7 @@ class LinkWireless {
|
|||
lastError = GAME_NAME_TOO_LONG;
|
||||
return false;
|
||||
}
|
||||
if (std::strlen(userName) > LINK_WIRELESS_MAX_GAME_NAME_LENGTH) {
|
||||
if (std::strlen(userName) > LINK_WIRELESS_MAX_USER_NAME_LENGTH) {
|
||||
lastError = USER_NAME_TOO_LONG;
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user