mirror of
https://github.com/espressif/esp-idf.git
synced 2026-07-11 13:33:05 +03:00
The ANSI color strings initializing s_lvl_color (e.g. "\033[0;31m\0") are 9 bytes, but the array second dimension was declared as [8], causing the implicit NUL terminator to be truncated. GCC 15 introduced -Wunterminated-string-initialization to flag this, resulting in a build error (-Werror) on the linux target which uses the host system GCC. Increase the dimension from [8] to [9] to accommodate the full string. Fixes https://github.com/espressif/esp-idf/issues/18500
Please see :doc:`docs/en/api-reference/system/log.rst` for more details.