]> granicus.if.org Git - esp-idf/commit
spi_flash: fix errors for GCC 8 support
authorAnton Maklakov <anton@espressif.com>
Thu, 24 May 2018 11:32:34 +0000 (19:32 +0800)
committerbot <bot@espressif.com>
Mon, 2 Jul 2018 09:05:00 +0000 (09:05 +0000)
commitf42b91fe46789c46445ba2841c31a9fa1f354ca0
tree6ee93f7b46cc979bb20608bbe68a547194bb5794
parent714a9bda92009717b4a34045b4300074195e1fe2
spi_flash: fix errors for GCC 8 support

components/spi_flash/partition.c: In function 'load_partitions':
components/spi_flash/partition.c:179:66: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
         strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
                                                                  ^
components/bootloader_support/src/bootloader_common.c
components/spi_flash/partition.c