mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
If ping write fails with short packet count, the
error message prints the two numbers backwards. PR: 6313 Reviewed by: phk Submitted by: Archie Cobbs
This commit is contained in:
parent
1d37f051c1
commit
416aa49b70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35216
@ -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.31 1998/04/02 01:12:55 eivind Exp $";
|
||||
"$Id: ping.c,v 1.32 1998/04/02 04:33:18 imp Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -592,7 +592,7 @@ pinger(void)
|
||||
warn("sendto");
|
||||
} else {
|
||||
warn("%s: partial write: %d of %d bytes",
|
||||
hostname, cc, i);
|
||||
hostname, i, cc);
|
||||
}
|
||||
}
|
||||
ntransmitted++;
|
||||
|
Loading…
Reference in New Issue
Block a user