Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix size #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

bug fix size #15

wants to merge 1 commit into from

Conversation

IOTeule
Copy link

@IOTeule IOTeule commented Jan 18, 2022

No description provided.

@@ -71,6 +71,7 @@ void Client::receiveTask() {
publishEvent(ClientEvent::DISCONNECTED, disconnectionMessage);
return;
} else {
receivedMessage[numOfBytesReceived] = '\0';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. This might solve the issue, but I think it should be done differently. The numOfBytesReceived should be published along with the receivedMessage on the next line of code. This provides greater flexibility for the end-user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants