summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2022-07-09 21:03:36 +0300
committerAzat Khuzhin <azat@libevent.org>2022-07-09 21:07:49 +0300
commitfcf85e4822ef4fd012b32b6eec0e6d7aaa544568 (patch)
tree812bfa6e06a39c6b054fb28d9d463c61acbe8cab /sample
parent384c52e6be5463e68662581dc94247fb40a18aa0 (diff)
downloadlibevent-fcf85e4822ef4fd012b32b6eec0e6d7aaa544568.tar.gz
sample/ssl-client-mbedtls.c: fix printing response in readcb
Diffstat (limited to 'sample')
-rw-r--r--sample/ssl-client-mbedtls.c2
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);
}
}