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/posix/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/time.c') diff --git a/toys/posix/time.c b/toys/posix/time.c index 0ccba19c..2648cd1c 100644 --- a/toys/posix/time.c +++ b/toys/posix/time.c @@ -27,7 +27,7 @@ void time_main(void) struct timeval tv, tv2; gettimeofday(&tv, NULL); - if (!(pid = fork())) xexec(toys.optargs); + if (!(pid = fork())) xexec_optargs(0); else { int stat; struct rusage ru; -- cgit v1.2.3