From 90f5eba070541eb46e2d22ad0cff146f0b216250 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 23 May 2019 15:41:36 +0200 Subject: pith/send.c: trim hashcash output from newlines --- pith/send.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3-70-g09d2