diff --git a/CHANGELOG.md b/CHANGELOG.md index bcb28d49c..a89f01896 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. ### Changed ### Fixed +- Zigbee fix crash on ESP8266 #17397 ### Removed diff --git a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_7_7_plugin.ino b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_7_7_plugin.ino index 75adbc203..f6cc778d5 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_7_7_plugin.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_7_7_plugin.ino @@ -165,8 +165,8 @@ bool ZbLoad_inner(const char *filename, File &fp) { if (filename_imported == nullptr) { // allocate only once the filename for multiple entries // freed only by `ZbUnload` - filename_imported = (char*) malloc(strlen(filename)+1); - strcpy(filename_imported, filename); + filename_imported = (char*) malloc(strlen_P(filename)+1); + strcpy_P(filename_imported, filename); } // there is a non-empty line, containing no space/tab/crlf