mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
fix bug in WiFiClient::write_P when content was binary
This commit is contained in:
@ -190,7 +190,7 @@ size_t WiFiClient::write_P(PGM_P buf, size_t size)
|
||||
{
|
||||
size_t chunkUnitLen;
|
||||
PGM_P chunkNext;
|
||||
chunkNext = (PGM_P)memccpy_P((void*)chunkUnit, (PGM_VOID_P)buf, 0, WIFICLIENT_MAX_PACKET_SIZE);
|
||||
chunkNext = (PGM_P)memcpy_P((void*)chunkUnit, (PGM_VOID_P)buf, WIFICLIENT_MAX_PACKET_SIZE);
|
||||
if (chunkNext == NULL)
|
||||
{
|
||||
// no terminator, more data available
|
||||
|
Reference in New Issue
Block a user