summaryrefslogtreecommitdiffstats
path: root/libexec/rbootd/conf.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-04-07 08:27:45 +0000
committerbrian <brian@FreeBSD.org>1999-04-07 08:27:45 +0000
commitc6c6c7de65eae103002ebb9bee8881e1e2e903df (patch)
tree18fb09ba4ed57096b2a23fd9d28689784a00024b /libexec/rbootd/conf.c
parent32ff8071a15df941cbe4d98c0badea284464f320 (diff)
downloadFreeBSD-src-c6c6c7de65eae103002ebb9bee8881e1e2e903df.zip
FreeBSD-src-c6c6c7de65eae103002ebb9bee8881e1e2e903df.tar.gz
Ensure that things returned by gethostname() and
friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde
Diffstat (limited to 'libexec/rbootd/conf.c')
-rw-r--r--libexec/rbootd/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rbootd/conf.c b/libexec/rbootd/conf.c
index 157f52b..e2d9643 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 */
OpenPOWER on IntegriCloud