]> diplodocus.org Git - nmh/commitdiff
Put, rather than print, single characters.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:38:04 +0000 (23:38 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:38:04 +0000 (23:38 +0100)
test/fakehttp.c

index 38671f7cc00d32ef3d4b5804c2e161702d185ab7..82db9a1eb2624a4e8cb8be1364fa276a99d06fb2 100644 (file)
@@ -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));