summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 a5b9e0ecb542..f98123d92559 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;
}