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:
Ivan Grokhotkov 2017-09-05 11:15:55 +08:00
commit 70cdb03ffa

View file

@ -137,6 +137,7 @@ static void openssl_example_task(void *p)
if (ret <= 0) {
break;
}
recv_buf[ret] = '\0';
recv_bytes += ret;
ESP_LOGI(TAG, "%s", recv_buf);
} while (1);