summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/radius.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-09 20:31:02 +0000
committerbrian <brian@FreeBSD.org>2001-03-09 20:31:02 +0000
commitc46089815b36c89c975b82747cb02876915674ee (patch)
tree38259242c5aa6ddde2bfbcf2ac7fd229da19a542 /usr.sbin/ppp/radius.c
parent872730b33181c11454a6cf1480b5f39a5773af5a (diff)
downloadFreeBSD-src-c46089815b36c89c975b82747cb02876915674ee.zip
FreeBSD-src-c46089815b36c89c975b82747cb02876915674ee.tar.gz
MAXHOSTNAME includes space for a NUL
Diffstat (limited to 'usr.sbin/ppp/radius.c')
-rw-r--r--usr.sbin/ppp/radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/radius.c b/usr.sbin/ppp/radius.c
index b031a52..79c81b0 100644
--- a/usr.sbin/ppp/radius.c
+++ b/usr.sbin/ppp/radius.c
@@ -373,7 +373,7 @@ radius_Authenticate(struct radius *r, struct authinfo *authp, const char *name,
struct ttyent *ttyp;
struct timeval tv;
int got, slot;
- char hostname[MAXHOSTNAMELEN + 1];
+ char hostname[MAXHOSTNAMELEN];
struct hostent *hp;
struct in_addr hostaddr;
@@ -493,7 +493,7 @@ radius_Account(struct radius *r, struct radacct *ac, struct datalink *dl,
struct ttyent *ttyp;
struct timeval tv;
int got, slot;
- char hostname[MAXHOSTNAMELEN + 1];
+ char hostname[MAXHOSTNAMELEN];
struct hostent *hp;
struct in_addr hostaddr;
OpenPOWER on IntegriCloud