svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Mon Jul 2 15:47:53 UTC 2007


Author: vda
Date: 2007-07-02 08:47:52 -0700 (Mon, 02 Jul 2007)
New Revision: 18994

Log:
ping: fix non-fancy ping6



Modified:
   trunk/busybox/networking/ping.c


Changeset:
Modified: trunk/busybox/networking/ping.c
===================================================================
--- trunk/busybox/networking/ping.c	2007-07-02 15:20:05 UTC (rev 18993)
+++ trunk/busybox/networking/ping.c	2007-07-02 15:47:52 UTC (rev 18994)
@@ -179,7 +179,8 @@
 	len_and_sockaddr *lsa;
 #if ENABLE_PING6
 	sa_family_t af = AF_UNSPEC;
-	while (++argv[0][0] == '-') {
+
+	while ((++argv)[0] && argv[0][0] == '-') {
 		if (argv[0][1] == '4') {
 			af = AF_INET;
 			continue;




More information about the busybox-cvs mailing list