From 151c44184e211bb3270a7fabeae11cc19bf3f655 Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Fri, 12 Apr 2013 18:22:50 +0000 Subject: 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@ --- usr.sbin/smtpd/control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/smtpd/control.c') diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c index b28bba91325..e3267d6d6fd 100644 --- a/usr.sbin/smtpd/control.c +++ b/usr.sbin/smtpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.83 2013/03/11 17:40:11 deraadt Exp $ */ +/* $OpenBSD: control.c,v 1.84 2013/04/12 18:22:49 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade @@ -674,7 +674,7 @@ control_dispatch_ext(struct mproc *p, struct imsg *imsg) /* table name too long */ len = strlen(imsg->data); - if (len >= MAX_LINE_SIZE) + if (len >= SMTPD_MAXLINESIZE) goto invalid; m_forward(p_lka, imsg); -- cgit v1.2.3