summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/radius.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-08 23:51:50 +0000
committerbrian <brian@FreeBSD.org>2001-03-08 23:51:50 +0000
commit298eccdc148d36583de336afa8746580f3a33aff (patch)
tree4930fa9219854ec1b2631e7ff7770d40461aee98 /usr.sbin/ppp/radius.c
parent4010cd1c76927246d32483cd92a0c8cb0c42a159 (diff)
downloadFreeBSD-src-298eccdc148d36583de336afa8746580f3a33aff.zip
FreeBSD-src-298eccdc148d36583de336afa8746580f3a33aff.tar.gz
MAXPATHLEN -> PATH_MAX
Don't assume MAXHOSTNAMELEN includes the NUL Correct a diagnostic Use "localhost" in our prompt instead of ""
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 79c81b0..b031a52 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];
+ char hostname[MAXHOSTNAMELEN + 1];
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];
+ char hostname[MAXHOSTNAMELEN + 1];
struct hostent *hp;
struct in_addr hostaddr;
OpenPOWER on IntegriCloud