From: Ralph Corderoy Date: Wed, 19 Oct 2016 22:38:04 +0000 (+0100) Subject: Put, rather than print, single characters. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/7afbcf2e6e3f2d548cedbde7424705989ea51241?ds=sidebyside;hp=e5afa1df87c24d49f0572ff903d4b0ee2eb803a8 Put, rather than print, single characters. --- 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));