FIX: Wrong user name length validation

This commit is contained in:
Rodrigo Alfonso 2025-01-01 22:43:02 -03:00
parent 9e77e1010e
commit b1eb8c9c4e
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}