[BusyBox-cvs] busybox/networking route.c,1.25,1.26

Manuel Novoa III mjn3 at busybox.net
Fri Mar 19 23:27:11 UTC 2004


Update of /var/cvs/busybox/networking
In directory nail:/tmp/cvs-serv1208/networking

Modified Files:
	route.c 
Log Message:
Oops.. got a bit to aggressive with size optimization and global replace.  :-(


Index: route.c
===================================================================
RCS file: /var/cvs/busybox/networking/route.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- a/route.c	15 Mar 2004 08:28:49 -0000	1.25
+++ b/route.c	19 Mar 2004 23:27:08 -0000	1.26
@@ -282,7 +282,8 @@
 		/* Device is special in that it can be the last arg specified
 		 * and doesn't requre the dev/device keyword in that case. */
 		if (!rt.rt_dev && ((k == KW_IPVx_DEVICE) || (!k && !*++args))) {
-			rt.rt_dev = (char *) args_m1;
+			/* Don't use args_m1 here since args may have changed! */
+			rt.rt_dev = args[-1];
 			continue;
 		}
 
@@ -407,7 +408,8 @@
 		/* Device is special in that it can be the last arg specified
 		 * and doesn't requre the dev/device keyword in that case. */
 		if (!devname && ((k == KW_IPVx_DEVICE) || (!k && !*++args))) {
-			devname = args_m1;
+			/* Don't use args_m1 here since args may have changed! */
+			devname = args[-1];
 			continue;
 		}
 




More information about the busybox-cvs mailing list