diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-20 17:37:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-20 17:37:55 +0000 |
commit | ee84f1cbaf28a0c8511dd2de2685028d389414b2 (patch) | |
tree | 0f2893c7931f5e91baa8636ffb931a4c90730812 /usr.sbin/smtpd/parse.y | |
parent | 52ef1f80c283aa859feb09537098b134f58707fc (diff) |
use <limits.h> comprehensively. For now try to push <> includes to
each .c file, and out of the .h files. To avoid overinclude.
ok gilles, in principle. If this has been done right, -portable should
become easier to maintain.
Diffstat (limited to 'usr.sbin/smtpd/parse.y')
-rw-r--r-- | usr.sbin/smtpd/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 5619d022fee..4135e018911 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.150 2015/01/16 06:40:20 deraadt Exp $ */ +/* $OpenBSD: parse.y,v 1.151 2015/01/20 17:37:54 deraadt Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1656,8 +1656,8 @@ parse_config(struct smtpd *x_conf, const char *filename, int opts) { struct sym *sym, *next; struct table *t; - char hostname[SMTPD_MAXHOSTNAMELEN]; - char hostname_copy[SMTPD_MAXHOSTNAMELEN]; + char hostname[HOST_NAME_MAX+1]; + char hostname_copy[HOST_NAME_MAX+1]; if (! getmailname(hostname, sizeof hostname)) return (-1); |