From b10d9d5f1029792786fa1662d2d304da3694d206 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 24 Dec 1997 00:59:02 +0000 Subject: [PATCH] Minor style nit noticed by bde. --- sbin/ping/ping.c | 4 ++-- 1 file 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; }