From archie@whistle.com  Wed Apr 15 19:22:24 1998
Received: from whistle.com (s205m131.whistle.com [207.76.205.131])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15793
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Apr 1998 19:22:23 GMT
          (envelope-from archie@whistle.com)
Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id MAA28909 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Apr 1998 12:21:52 -0700 (PDT)
Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3)
	id sma028899; Wed Apr 15 12:21:46 1998
Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id MAA17759; Wed, 15 Apr 1998 12:21:45 -0700 (PDT)
Message-Id: <199804151921.MAA17759@bubba.whistle.com>
Date: Wed, 15 Apr 1998 12:21:45 -0700 (PDT)
From: Archie Cobbs <archie@whistle.com>
Reply-To: archie@whistle.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: backwards ping error report
X-Send-Pr-Version: 3.2

>Number:         6313
>Category:       bin
>Synopsis:       backwards ping error report
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 15 12:30:03 PDT 1998
>Closed-Date:    Wed Apr 15 12:56:42 PDT 1998
>Last-Modified:  Wed Apr 15 12:57:00 PDT 1998
>Originator:     Archie Cobbs
>Release:        FreeBSD 2.2.6-RELEASE i386
>Organization:
Whistle Communications, Inc.
>Environment:

	FreeBSD 2.2.6

>Description:

	If ping write fails with short packet count, the
	error message prints the two numbers backwards.

>How-To-Repeat:

>Fix:

Index: ping.c
===================================================================
RCS file: /cvs/freebsd/src/sbin/ping/ping.c,v
retrieving revision 1.8.2.15
diff -c -r1.8.2.15 ping.c
*** ping.c	1998/03/06 13:07:12	1.8.2.15
--- ping.c	1998/04/15 19:21:34
***************
*** 592,598 ****
  			warn("sendto");
  		} else {
  			warn("%s: partial write: %d of %d bytes",
! 			     hostname, cc, i);
  		}
  	}
  	ntransmitted++;
--- 592,598 ----
  			warn("sendto");
  		} else {
  			warn("%s: partial write: %d of %d bytes",
! 			     hostname, i, cc);
  		}
  	}
  	ntransmitted++;


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed Apr 15 12:56:42 PDT 1998 
State-Changed-Why:  
committed, thanks! 
>Unformatted:
