mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
Merge branch 'bugfix/openssl_client_example' into 'master'
example/openssl_client: Fix http string "printf" error without end character '\0' See merge request !1201
This commit is contained in:
@@ -137,6 +137,7 @@ static void openssl_example_task(void *p)
|
|||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
recv_buf[ret] = '\0';
|
||||||
recv_bytes += ret;
|
recv_bytes += ret;
|
||||||
ESP_LOGI(TAG, "%s", recv_buf);
|
ESP_LOGI(TAG, "%s", recv_buf);
|
||||||
} while (1);
|
} while (1);
|
||||||
|
Reference in New Issue
Block a user