diff options
-rw-r--r-- | pith/send.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pith/send.c b/pith/send.c index 1bc47ced..80d010d9 100644 --- a/pith/send.c +++ b/pith/send.c @@ -1721,6 +1721,9 @@ call_mailer(METAENV *header, struct mail_bodystruct *body, char **alt_smtp_serve if (fp != NULL) { while (!feof(fp)) { if (fgets(output, 1024, fp) != NULL) { + for (int ii=0; ii<1024; ii++) + if ((output[ii]=='\x0a') || (output[ii]=='\x0d')) + output[ii]='\0'; pff->next = fs_get((size_t)sizeof(PINEFIELD)); memset(pff->next, 0, (size_t)sizeof(PINEFIELD)); pff = pff->next; |