From 7afbcf2e6e3f2d548cedbde7424705989ea51241 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 19 Oct 2016 23:38:04 +0100 Subject: [PATCH] Put, rather than print, single characters. --- test/fakehttp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fakehttp.c b/test/fakehttp.c index 38671f7c..82db9a1e 100644 --- a/test/fakehttp.c +++ b/test/fakehttp.c @@ -68,7 +68,7 @@ save_req(int conn, FILE *req) } if (r < 0) { e = errno; - fputs("\n", req); /* req body usually has no newline */ + putc('\n', req); /* req body usually has no newline */ fclose(req); if (e != EAGAIN && e != EWOULDBLOCK) { fprintf(stderr, "Unable to read socket: %s\n", strerror(e)); -- 2.56.0