summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2013-02-14 14:34:07 +0000
committereric <eric@openbsd.org>2013-02-14 14:34:07 +0000
commit8ab1a1b382480e3ebcbe69b28be4b21501cddee8 (patch)
tree0158c57d0faa7a7d061636158c267d3e5e23d018
parent- document smtpctl trace expand (diff)
downloadwireguard-openbsd-8ab1a1b382480e3ebcbe69b28be4b21501cddee8.tar.xz
wireguard-openbsd-8ab1a1b382480e3ebcbe69b28be4b21501cddee8.zip
grow MAX_LOCALPART_SIZE and MAX_DOMAINPART_SIZE by 1 (for the '\0')
ok gilles@
-rw-r--r--usr.sbin/smtpd/smtpd-api.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtpd-api.h b/usr.sbin/smtpd/smtpd-api.h
index 0f6218b7229..ffd626c660a 100644
--- a/usr.sbin/smtpd/smtpd-api.h
+++ b/usr.sbin/smtpd/smtpd-api.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd-api.h,v 1.1 2013/01/26 09:37:23 gilles Exp $ */
+/* $OpenBSD: smtpd-api.h,v 1.2 2013/02/14 14:34:07 eric Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
@@ -29,8 +29,8 @@
#define FILTER_API_VERSION 50
#define MAX_LINE_SIZE 2048
-#define MAX_LOCALPART_SIZE 64
-#define MAX_DOMAINPART_SIZE 255
+#define MAX_LOCALPART_SIZE (64 + 1)
+#define MAX_DOMAINPART_SIZE (255 + 1)
struct mailaddr {
char user[MAX_LOCALPART_SIZE];