summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-04-24 19:16:12 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-04-24 19:16:12 +0000
commit48ef3800133ac344b600bd1ef74666879d2f89a6 (patch)
treede89d20ac599c697d9a057c4e03ec52fd94e3c6a /usr.sbin
parent2cc5b2d5ea4e4207a448f7192d0a59cef474df9a (diff)
fix format string
while there, print SIZE unconditonnally (prompted by gilles@) ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/smtp_session.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 71cb9d1a12b..6d6dd58a9a0 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.131 2010/04/21 20:32:57 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.132 2010/04/24 19:16:11 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -369,8 +369,7 @@ session_rfc5321_ehlo_handler(struct session *s, char *args)
session_respond(s, "250-ENHANCEDSTATUSCODES");
/* XXX - we also want to support reading SIZE from MAIL parameters */
- if (s->s_env->sc_maxsize < SIZE_MAX)
- session_respond(s, "250-SIZE %lu", s->s_env->sc_maxsize);
+ session_respond(s, "250-SIZE %zu", s->s_env->sc_maxsize);
if (ADVERTISE_TLS(s))
session_respond(s, "250-STARTTLS");