We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4812cae commit f211014Copy full SHA for f211014
cores/esp8266/spiffs_hal.cpp
@@ -60,7 +60,7 @@ int32_t spiffs_hal_read(uint32_t addr, uint32_t size, uint8_t *dst) {
60
__LINE__, addr, size, alignedBegin, alignedEnd);
61
return SPIFFS_ERR_INTERNAL;
62
}
63
- memcpy(dst, &tmp + 4 - nb, nb);
+ memcpy(dst, ((uint8_t*) &tmp) + 4 - nb, nb);
64
65
66
if (alignedEnd != alignedBegin) {
0 commit comments