mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-23 19:08:10 +08:00
feat(gcc): update cross toolchain GCC to v8.x
This commit is contained in:
@@ -204,9 +204,11 @@ static esp_err_t load_partitions()
|
||||
item->info.encrypted = false;
|
||||
#endif
|
||||
|
||||
const int label_size = sizeof(it->label);
|
||||
|
||||
// it->label may not be zero-terminated
|
||||
strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
|
||||
item->info.label[sizeof(it->label)] = 0;
|
||||
strncpy(item->info.label, (const char*) it->label, label_size);
|
||||
item->info.label[label_size] = 0;
|
||||
// add it to the list
|
||||
if (last == NULL) {
|
||||
SLIST_INSERT_HEAD(&s_partition_list, item, next);
|
||||
|
Reference in New Issue
Block a user