Implementace fixu z https://github.com/me-no-dev/ESPAsyncWebServer/issues/1458
This commit is contained in:
parent
697a3adf08
commit
9dca4f5dee
@ -595,7 +595,7 @@ void AsyncWebSocketClient::_onData(void* pbuf, size_t plen) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// restore byte as _handleEvent may have added a null terminator i.e., data[len] = 0;
|
// restore byte as _handleEvent may have added a null terminator i.e., data[len] = 0;
|
||||||
if (datalen)
|
if (data && datalen > 0)
|
||||||
data[datalen] = datalast;
|
data[datalen] = datalast;
|
||||||
|
|
||||||
data += datalen;
|
data += datalen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user