-/*
- * 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
if (rc == -1)
break; /* EOF */
- fprintf(f, "%s\n", line);
+ fputs(line, f);
+ putc('\n', f);
switch (smtp_state) {
case SMTP_DATA: