Skip to content

Commit

Permalink
Merge pull request #11 from hb9xar/master
Browse files Browse the repository at this point in the history
fix: connect() method - use correct buffer to write password into
  • Loading branch information
imbeacon authored Dec 9, 2024
2 parents 4039196 + c86106d commit a5c561b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PubSubClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ boolean PubSubClient::connect(const char *id, const char *user, const char *pass
length = writeString(user,this->receive_buffer,length);
if(pass != NULL) {
CHECK_STRING_LENGTH(length,pass)
length = writeString(pass,this->send_buffer,length);
length = writeString(pass,this->receive_buffer,length);
}
}

Expand Down

0 comments on commit a5c561b

Please sign in to comment.