From fcf85e4822ef4fd012b32b6eec0e6d7aaa544568 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 9 Jul 2022 21:03:36 +0300 Subject: sample/ssl-client-mbedtls.c: fix printing response in readcb --- sample/ssl-client-mbedtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/ssl-client-mbedtls.c b/sample/ssl-client-mbedtls.c index b63681d2..39b8d64d 100644 --- a/sample/ssl-client-mbedtls.c +++ b/sample/ssl-client-mbedtls.c @@ -70,7 +70,7 @@ readcb(struct bufferevent *bev, void *arg) fprintf(stderr, "readcb %zu\n\n", r); if (r > 1) { fwrite(buf, 1, r, stdout); - fwrite("\n", 1, r, stdout); + fwrite("\n", 1, 1, stdout); fflush(stdout); } } -- cgit v1.2.1