[ESP8266] Fixed format overflow warning

This commit is contained in:
jgromes 2020-05-01 13:50:29 +02:00
parent 9477789e9b
commit eccf6e3865

View file

@ -131,7 +131,7 @@ int16_t ESP8266::closeTransportConnection() {
int16_t ESP8266::send(const char* data) { int16_t ESP8266::send(const char* data) {
// build AT command // build AT command
char lenStr[8]; char lenStr[12];
sprintf(lenStr, "%d", strlen(data)); sprintf(lenStr, "%d", strlen(data));
const char* atStr = "AT+CIPSEND="; const char* atStr = "AT+CIPSEND=";
#ifdef RADIOLIB_STATIC_ONLY #ifdef RADIOLIB_STATIC_ONLY