examples/esp_http_client: `output_buffer` isn't necessarily NUL-terminated
Closes
Closes
@@ -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");
}
