Skip to content

Commit

Permalink
Change MAX_LEN_NAME to MAX_LEN_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
DobbyK authored and lmoureaux committed Jul 20, 2021
1 parent b36af75 commit 82c6b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/gui-qt/page_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ void page_network::slot_connect()
if (client_url().password()
== ui.connect_confirm_password_edit->text()) {
fc_strlcpy(reply.password, qUtf8Printable(client_url().password()),
MAX_LEN_NAME);
MAX_LEN_PASSWORD);
send_packet_authentication_reply(&client.conn, &reply);
set_connection_state(WAITING_TYPE);
} else {
Expand All @@ -451,7 +451,7 @@ void page_network::slot_connect()
case ENTER_PASSWORD_TYPE:
client_url().setPassword(ui.connect_password_edit->text());
fc_strlcpy(reply.password, qUtf8Printable(client_url().password()),
MAX_LEN_NAME);
MAX_LEN_PASSWORD);
send_packet_authentication_reply(&client.conn, &reply);
set_connection_state(WAITING_TYPE);
return;
Expand Down

0 comments on commit 82c6b68

Please sign in to comment.