diff options
author | joerg <joerg@FreeBSD.org> | 1998-01-04 10:08:26 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1998-01-04 10:08:26 +0000 |
commit | 0a88d1dcf160db9fde05a70297aaee04032711bf (patch) | |
tree | 9f8dc847ddd64f52fa0506519ec8e8cb0c5219e8 /usr.bin/mail/send.c | |
parent | 6728e0d8f397af78bd802c4d6700c42cce7b6654 (diff) | |
download | FreeBSD-src-0a88d1dcf160db9fde05a70297aaee04032711bf.zip FreeBSD-src-0a88d1dcf160db9fde05a70297aaee04032711bf.tar.gz |
Fix a style bug, and a real bug (&& vs. & misused).
Submitted by: bde
Diffstat (limited to 'usr.bin/mail/send.c')
-rw-r--r-- | usr.bin/mail/send.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c index f9b7c87..b791e29 100644 --- a/usr.bin/mail/send.c +++ b/usr.bin/mail/send.c @@ -442,7 +442,8 @@ infix(hp, fi) return(fi); } (void) rm(tempMail); - (void) puthead(hp, nfo, GTO|GSUBJECT|GCC|GBCC|GREPLYTO|GINREPLYTO|GNL|GCOMMA); + (void) puthead(hp, nfo, + GTO|GSUBJECT|GCC|GBCC|GREPLYTO|GINREPLYTO|GNL|GCOMMA); c = getc(fi); while (c != EOF) { (void) putc(c, nfo); @@ -488,9 +489,9 @@ puthead(hp, fo, w) fmt("Cc:", hp->h_cc, fo, w&GCOMMA), gotcha++; if (hp->h_bcc != NIL && w & GBCC) fmt("Bcc:", hp->h_bcc, fo, w&GCOMMA), gotcha++; - if (hp->h_replyto != NOSTR && w && GREPLYTO) + if (hp->h_replyto != NOSTR && w & GREPLYTO) fprintf(fo, "Reply-To: %s\n", hp->h_replyto), gotcha++; - if (hp->h_inreplyto != NOSTR && w && GINREPLYTO) + if (hp->h_inreplyto != NOSTR && w & GINREPLYTO) fprintf(fo, "In-Reply-To: <%s>\n", hp->h_inreplyto), gotcha++; if (gotcha && w & GNL) (void) putc('\n', fo); |