knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.78k stars 1.46k forks source link

fix: use of wrong strnlen variant on PROGMEM payload strings #1020

Open muggenhor opened 11 months ago

muggenhor commented 11 months ago

strnlen_P is needed to avoid the wrong method of reading to cause bad things to happen (CPU exceptions on ESP8266).

Fixes: #747