mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-01 13:27:18 -05:00
FIX: Wrong user name length validation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user