mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-24 03:55:27 +08:00
Revert "Merge branch 'feature/support_gcc_v8.x' into 'master'"
This reverts merge request !1539
This commit is contained in:
@@ -204,11 +204,9 @@ 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, label_size);
|
||||
item->info.label[label_size] = 0;
|
||||
strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
|
||||
item->info.label[sizeof(it->label)] = 0;
|
||||
// add it to the list
|
||||
if (last == NULL) {
|
||||
SLIST_INSERT_HEAD(&s_partition_list, item, next);
|
||||
|
Reference in New Issue
Block a user