diff options
| author | Brian Somers <brian@FreeBSD.org> | 1999-04-07 08:27:45 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1999-04-07 08:27:45 +0000 |
| commit | 9e9a43bdec3ff0ad37e4799b209e0d9513150a6f (patch) | |
| tree | fb3cb78777ecc17ab82d96b7153224fd483b2d4c /libexec/rbootd | |
| parent | 5b3f0a74e15f741303eb4c823555de3464f8ef7c (diff) | |
Notes
Diffstat (limited to 'libexec/rbootd')
| -rw-r--r-- | libexec/rbootd/conf.c | 4 | ||||
| -rw-r--r-- | libexec/rbootd/rbootd.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/rbootd/conf.c b/libexec/rbootd/conf.c index 157f52b2af82..e2d964330f3e 100644 --- a/libexec/rbootd/conf.c +++ b/libexec/rbootd/conf.c @@ -49,7 +49,7 @@ static const char sccsid[] = "@(#)conf.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: conf.c,v 1.3 1997/11/24 07:33:40 charnier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -69,7 +69,7 @@ static const char rcsid[] = ** simplify the boot file search code. */ -char MyHost[MAXHOSTNAMELEN+1]; /* host name */ +char MyHost[MAXHOSTNAMELEN]; /* host name */ pid_t MyPid; /* process id */ int DebugFlg = 0; /* set true if debugging */ int BootAny = 0; /* set true if we boot anyone */ diff --git a/libexec/rbootd/rbootd.c b/libexec/rbootd/rbootd.c index a74734c2bd96..b8e384d7dc4d 100644 --- a/libexec/rbootd/rbootd.c +++ b/libexec/rbootd/rbootd.c @@ -55,7 +55,7 @@ static const char copyright[] = static const char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: rbootd.c,v 1.9 1997/11/24 07:33:41 charnier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -168,11 +168,11 @@ main(argc, argv) /* * Grab our host name and pid. */ - if (gethostname(MyHost, MAXHOSTNAMELEN) < 0) { + if (gethostname(MyHost, MAXHOSTNAMELEN - 1) < 0) { syslog(LOG_ERR, "gethostname: %m"); Exit(0); } - MyHost[MAXHOSTNAMELEN] = '\0'; + MyHost[MAXHOSTNAMELEN - 1] = '\0'; MyPid = getpid(); |
