summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ipcp.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/ipcp.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/ipcp.c')
-rw-r--r--usr.sbin/ppp/ipcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c
index 6369a48..b10657a 100644
--- a/usr.sbin/ppp/ipcp.c
+++ b/usr.sbin/ppp/ipcp.c
@@ -541,7 +541,7 @@ ipcp_Init(struct ipcp *ipcp, struct bundle *bundle, struct link *l,
const struct fsm_parent *parent)
{
struct hostent *hp;
- char name[MAXHOSTNAMELEN];
+ char name[MAXHOSTNAMELEN + 1];
static const char * const timer_names[] =
{"IPCP restart", "IPCP openmode", "IPCP stopped"};
OpenPOWER on IntegriCloud