Zigbee fix crash on ESP8266 #17397 (#17405)

This commit is contained in:
s-hadinger 2022-12-15 22:52:19 +01:00 committed by GitHub
parent 6658c8d269
commit f8b56e1058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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