From a817a02c00a06fbf2090259320968addb5f46e58 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 18 Jul 2013 18:20:03 -0500 Subject: Replace users of xexec(toys.optargs) with xexec_optargs(0) to avoid free/reuse bug during argument parsing. --- toys/other/taskset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/taskset.c') diff --git a/toys/other/taskset.c b/toys/other/taskset.c index 2b067d4a..bcc03478 100644 --- a/toys/other/taskset.c +++ b/toys/other/taskset.c @@ -90,7 +90,7 @@ void taskset_main(void) if (!(toys.optflags & FLAG_p)) { if (toys.optc < 2) error_exit("Needs 2 args"); do_taskset(getpid(), 1); - xexec(toys.optargs+1); + xexec_optargs(1); } else { char *c; pid_t pid = strtol(toys.optargs[toys.optc-1], &c, 10); -- cgit v1.2.3