diff options
author | brian <brian@FreeBSD.org> | 2001-03-08 23:51:50 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-03-08 23:51:50 +0000 |
commit | 298eccdc148d36583de336afa8746580f3a33aff (patch) | |
tree | 4930fa9219854ec1b2631e7ff7770d40461aee98 /usr.sbin/ppp/bundle.c | |
parent | 4010cd1c76927246d32483cd92a0c8cb0c42a159 (diff) | |
download | FreeBSD-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/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 083c474..1769b9f 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -645,7 +645,7 @@ void bundle_LockTun(struct bundle *bundle) { FILE *lockfile; - char pidfile[MAXPATHLEN]; + char pidfile[PATH_MAX]; snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit); lockfile = ID0fopen(pidfile, "w"); @@ -663,7 +663,7 @@ bundle_LockTun(struct bundle *bundle) static void bundle_UnlockTun(struct bundle *bundle) { - char pidfile[MAXPATHLEN]; + char pidfile[PATH_MAX]; snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit); ID0unlink(pidfile); |