From 84aafbcbd7d4bfbe59924ecc5b635ddee9b7d49e Mon Sep 17 00:00:00 2001 From: Oleg Safiullin Date: Sun, 22 Feb 2009 11:44:30 +0000 Subject: replace MAX* constants by sizeof where possible ok jacekm@ --- usr.sbin/smtpd/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/smtpd/util.c') 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 @@ -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; -- cgit v1.2.3