mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
examples/esp_http_client: output_buffer
isn't necessarily NUL-terminated
Closes https://github.com/espressif/esp-idf/pull/6927 Closes IDFGH-5150
This commit is contained in:
parent
9afd57057d
commit
24225e5c16
@ -603,7 +603,7 @@ static void http_native_request(void)
|
||||
ESP_LOGI(TAG, "HTTP GET Status = %d, content_length = %d",
|
||||
esp_http_client_get_status_code(client),
|
||||
esp_http_client_get_content_length(client));
|
||||
ESP_LOG_BUFFER_HEX(TAG, output_buffer, strlen(output_buffer));
|
||||
ESP_LOG_BUFFER_HEX(TAG, output_buffer, data_read);
|
||||
} else {
|
||||
ESP_LOGE(TAG, "Failed to read response");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user