mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02: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:
@@ -603,7 +603,7 @@ static void http_native_request(void)
|
|||||||
ESP_LOGI(TAG, "HTTP GET Status = %d, content_length = %d",
|
ESP_LOGI(TAG, "HTTP GET Status = %d, content_length = %d",
|
||||||
esp_http_client_get_status_code(client),
|
esp_http_client_get_status_code(client),
|
||||||
esp_http_client_get_content_length(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 {
|
} else {
|
||||||
ESP_LOGE(TAG, "Failed to read response");
|
ESP_LOGE(TAG, "Failed to read response");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user