diff toys/posix/nice.c @ 955:144d5ba7d410

Replace users of xexec(toys.optargs) with xexec_optargs(0) to avoid free/reuse bug during argument parsing.
author Rob Landley <rob@landley.net>
date Thu, 18 Jul 2013 18:20:03 -0500
parents 786841fdb1e0
children cbb1aca81eca
line wrap: on
line diff
--- a/toys/posix/nice.c	Wed Jul 17 17:27:14 2013 -0500
+++ b/toys/posix/nice.c	Thu Jul 18 18:20:03 2013 -0500
@@ -34,5 +34,5 @@
   errno = 0;
   if (nice(TT.priority)==-1 && errno) perror_exit("Can't set priority");
 
-  xexec(toys.optargs);
+  xexec_optargs(0);
 }