-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
After fighting with some odd topic-corruption (in a const char* no less) -- I think that the calculation in this line:
pubsubclient/src/PubSubClient.cpp
Line 460 in 2d228f2
for (i=0;i<plength;i++) { |
pubsubclient/src/PubSubClient.cpp
Line 437 in 2d228f2
return publish(topic,(const uint8_t*)payload, payload ? strnlen(payload, this->bufferSize) : 0,false); |
pubsubclient/src/PubSubClient.cpp
Line 448 in 2d228f2
boolean PubSubClient::publish(const char* topic, const uint8_t* payload, unsigned int plength, boolean retained) { |
So it should perhaps read i < plength && length < buffSize
Metadata
Metadata
Assignees
Labels
No labels