[BusyBox-cvs] busybox/networking ifupdown.c,1.33,1.34

Erik Andersen andersen at busybox.net
Fri Sep 12 08:39:09 UTC 2003


Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv23139/networking

Modified Files:
	ifupdown.c 
Log Message:
As vodz just pointed out, I screwup up the call to bb_xasprintf!


Index: ifupdown.c
===================================================================
RCS file: /var/cvs/busybox/networking/ifupdown.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- ifupdown.c	12 Sep 2003 05:59:53 -0000	1.33
+++ ifupdown.c	12 Sep 2003 08:39:05 -0000	1.34
@@ -1023,7 +1023,7 @@
 static int execute_all(struct interface_defn_t *ifd, execfn *exec, const char *opt)
 {
 	int i;
-	char *buf[100];
+	char *buf;
 	for (i = 0; i < ifd->n_options; i++) {
 		if (strcmp(ifd->option[i].name, opt) == 0) {
 			if (!(*exec) (ifd->option[i].value)) {
@@ -1032,7 +1032,7 @@
 		}
 	}
 	
-	bb_xasprintf(buf, "run-parts /etc/network/if-%s.d", opt);
+	bb_xasprintf(&buf, "run-parts /etc/network/if-%s.d", opt);
 	(*exec)(buf);
 
 	return (1);




More information about the busybox-cvs mailing list