summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/util.c
diff options
context:
space:
mode:
authorOleg Safiullin <form@cvs.openbsd.org>2009-02-22 11:44:30 +0000
committerOleg Safiullin <form@cvs.openbsd.org>2009-02-22 11:44:30 +0000
commit84aafbcbd7d4bfbe59924ecc5b635ddee9b7d49e (patch)
treee5b2f3ca1a8c1df9d9459f39ed8eaab8a13ddad0 /usr.sbin/smtpd/util.c
parentdaea31b785b4497a3bb956c142810504edb37eb0 (diff)
replace MAX* constants by sizeof where possible
ok jacekm@
Diffstat (limited to 'usr.sbin/smtpd/util.c')
-rw-r--r--usr.sbin/smtpd/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c
index 687b3267fca..9fdb28cfed7 100644
--- a/usr.sbin/smtpd/util.c
+++ b/usr.sbin/smtpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.11 2009/02/18 22:39:12 jacekm Exp $ */
+/* $OpenBSD: util.c,v 1.12 2009/02/22 11:44:29 form Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -137,11 +137,11 @@ recipient_to_path(struct path *path, char *recipient)
}
if (strlcpy(path->user, username, sizeof(path->user))
- >= MAX_LOCALPART_SIZE)
+ >= sizeof(path->user))
return 0;
if (strlcpy(path->domain, hostname, sizeof(path->domain))
- >= MAX_DOMAINPART_SIZE)
+ >= sizeof(path->domain))
return 0;
return 1;