diff options
author | Erich Eckner <git@eckner.net> | 2019-05-23 15:41:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-01-20 19:19:09 +0100 |
commit | 90f5eba070541eb46e2d22ad0cff146f0b216250 (patch) | |
tree | 0a9df1596071561489f546b95159ee73a4dbf0bd | |
parent | e36bc8b78ba7719fbdde205c56546d0172036b81 (diff) | |
download | alpine-90f5eba070541eb46e2d22ad0cff146f0b216250.tar.xz |
pith/send.c: trim hashcash output from newlines
-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; |