mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Modifies the argument of the sizeof statement to a legitimate array name
This commit is contained in:
parent
df9310ada2
commit
ffa79a4b4e
@ -18,7 +18,7 @@ int esp_sysview_vprintf(const char * format, va_list args)
|
||||
portENTER_CRITICAL(&s_log_mutex);
|
||||
size_t len = vsnprintf(log_buffer, sizeof(log_buffer), format, args);
|
||||
if (len > sizeof(log_buffer) - 1) {
|
||||
log_buffer[sizeof(log_buffer - 1)] = 0;
|
||||
log_buffer[sizeof(log_buffer) - 1] = 0;
|
||||
}
|
||||
SEGGER_SYSVIEW_Print(log_buffer);
|
||||
portEXIT_CRITICAL(&s_log_mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user