]> diplodocus.org Git - nmh/blobdiff - test/fakesmtp.c
m_gmprot.c: Move interface to own file.
[nmh] / test / fakesmtp.c
index 35230957416a966ae73c369355272f9bcfb75d69..c4fa3e7c69cc1babd3e5b6a3ec4095c0aa8a9b1c 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * fakesmtp - A fake SMTP server used by the nmh test suite
+/* fakesmtp - A fake SMTP server used by the nmh test suite
  *
  * This code is Copyright (c) 2012, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -71,7 +70,8 @@ main(int argc, char *argv[])
                if (rc == -1)
                        break;  /* EOF */
 
-               fprintf(f, "%s\n", line);
+                fputs(line, f);
+                putc('\n', f);
 
                switch (smtp_state) {
                case SMTP_DATA: