summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-12-24 00:59:02 +0000
committerimp <imp@FreeBSD.org>1997-12-24 00:59:02 +0000
commitd2e80bb3ced3848e4250efd3b3e23febe438388d (patch)
tree5c9c6a808e1dd47a5004a1cb97cd9d93a00625d3 /sbin
parent6356793b9936dd229c309d412e2473c090fbde63 (diff)
downloadFreeBSD-src-d2e80bb3ced3848e4250efd3b3e23febe438388d.zip
FreeBSD-src-d2e80bb3ced3848e4250efd3b3e23febe438388d.tar.gz
Minor style nit noticed by bde.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ping/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index a5b9e0e..f98123d 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
*/
static const char rcsid[] =
- "$Id: ping.c,v 1.27 1997/08/07 02:41:15 julian Exp $";
+ "$Id: ping.c,v 1.28 1997/08/11 04:33:07 fenner Exp $";
#endif /* not lint */
/*
@@ -334,7 +334,7 @@ main(argc, argv)
errx(1,"gethostbyname2 returned an illegal address");
memcpy(&to->sin_addr, hp->h_addr_list[0], sizeof to->sin_addr);
(void)strncpy(hnamebuf, hp->h_name, sizeof(hnamebuf) - 1);
- hnamebuf[(sizeof hnamebuf) - 1] = '\0';
+ hnamebuf[sizeof(hnamebuf) - 1] = '\0';
hostname = hnamebuf;
}
OpenPOWER on IntegriCloud