[BusyBox-cvs] busybox/debianutils run_parts.c,1.2,1.3
Glenn McGrath
bug1 at busybox.net
Wed Jan 8 03:26:50 UTC 2003
Update of /var/cvs/busybox/debianutils
In directory winder:/tmp/cvs-serv28483/debianutils
Modified Files:
run_parts.c
Log Message:
Patch by Stewart Brodie to terminate the string array correctly
Index: run_parts.c
===================================================================
RCS file: /var/cvs/busybox/debianutils/run_parts.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- run_parts.c 11 Nov 2002 06:20:55 -0000 1.2
+++ run_parts.c 8 Jan 2003 03:26:47 -0000 1.3
@@ -88,7 +88,6 @@
* Called once for every argument. */
args = xrealloc(args, (argcount + 2) * (sizeof(char *)));
args[argcount++] = optarg;
- args[argcount] = 0;
break;
default:
show_usage();
@@ -101,5 +100,7 @@
}
args[0] = argv[optind];
+ args[argcount] = 0;
+
return(run_parts(args, test_mode));
}
More information about the busybox-cvs
mailing list