diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-04-12 18:22:50 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-04-12 18:22:50 +0000 |
commit | 151c44184e211bb3270a7fabeae11cc19bf3f655 (patch) | |
tree | 0293c3549c0c35779dee2a8fcd133cb041da45e1 /usr.sbin/smtpd/mda.c | |
parent | b2af155a762b2602e13422b698b391ea9278194b (diff) |
replace MAX_LINE_SIZE and SMTP_LINE_MAX with SMTPD_MAXLINESIZE for
consistency and clarity. Remove useless and confusing extra byte in
a few arrays based on this define.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/mda.c')
-rw-r--r-- | usr.sbin/smtpd/mda.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index c54c256ad8b..4b98b3937a4 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.89 2013/02/05 11:45:18 gilles Exp $ */ +/* $OpenBSD: mda.c,v 1.90 2013/04/12 18:22:49 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -119,7 +119,7 @@ mda_imsg(struct mproc *p, struct imsg *imsg) const char *username, *usertable; uint64_t reqid; size_t sz; - char out[256], buf[MAX_LINE_SIZE]; + char out[256], buf[SMTPD_MAXLINESIZE]; int n, v; enum lka_resp_status status; @@ -674,7 +674,7 @@ static int mda_getlastline(int fd, char *dst, size_t dstsz) { FILE *fp; - char *ln, buf[MAX_LINE_SIZE]; + char *ln, buf[SMTPD_MAXLINESIZE]; size_t len; bzero(buf, sizeof buf); @@ -852,7 +852,7 @@ mda_done(struct mda_session *s) static void mda_log(const struct mda_envelope *evp, const char *prefix, const char *status) { - char rcpt[MAX_LINE_SIZE]; + char rcpt[SMTPD_MAXLINESIZE]; const char *method; rcpt[0] = '\0'; |