diff options
author | charnier <charnier@FreeBSD.org> | 1997-10-31 12:33:14 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-10-31 12:33:14 +0000 |
commit | f164448775c6362174ad4512e2afa6f31506ac29 (patch) | |
tree | 615f82582cda2bcca65de93b3f111b48d762d243 /usr.sbin/timed/timedc | |
parent | d481f2e6ec9870b08ade1bd46a8b981c5df1ee52 (diff) | |
download | FreeBSD-src-f164448775c6362174ad4512e2afa6f31506ac29.zip FreeBSD-src-f164448775c6362174ad4512e2afa6f31506ac29.tar.gz |
Make all strings representing hostnames to be NUL-terminated within
MAXHOSTNAMELEN chars, like everywhere else in the system, so that strcpy()s
and printf()s won't fail.
Diffstat (limited to 'usr.sbin/timed/timedc')
-rw-r--r-- | usr.sbin/timed/timedc/cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/timed/timedc/cmds.c b/usr.sbin/timed/timedc/cmds.c index e52afa4..2c97808 100644 --- a/usr.sbin/timed/timedc/cmds.c +++ b/usr.sbin/timed/timedc/cmds.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)cmds.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: cmds.c,v 1.3 1997/10/22 06:20:04 charnier Exp $"; + "$Id: cmds.c,v 1.4 1997/10/29 07:35:27 charnier Exp $"; #endif /* not lint */ #include "timedc.h" @@ -68,7 +68,7 @@ static const char rcsid[] = int sock; int sock_raw; -char myname[MAXHOSTNAMELEN+1]; +char myname[MAXHOSTNAMELEN]; struct hostent *hp; struct sockaddr_in server; struct sockaddr_in dayaddr; |