diff options
author | Azat Khuzhin <azat@libevent.org> | 2022-07-09 21:03:36 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2022-07-09 21:07:49 +0300 |
commit | fcf85e4822ef4fd012b32b6eec0e6d7aaa544568 (patch) | |
tree | 812bfa6e06a39c6b054fb28d9d463c61acbe8cab /sample | |
parent | 384c52e6be5463e68662581dc94247fb40a18aa0 (diff) | |
download | libevent-fcf85e4822ef4fd012b32b6eec0e6d7aaa544568.tar.gz |
sample/ssl-client-mbedtls.c: fix printing response in readcb
Diffstat (limited to 'sample')
-rw-r--r-- | sample/ssl-client-mbedtls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |