diff mbox series

[COMMITTED] posix: Fix tst-spawn.c issue from commit 805334b26c

Message ID 20190105140059.21208-1-adhemerval.zanella@linaro.org
State New
Headers show
Series [COMMITTED] posix: Fix tst-spawn.c issue from commit 805334b26c | expand

Commit Message

Adhemerval Zanella Jan. 5, 2019, 2 p.m. UTC
Checked on powerpc64le-linux-gnu.

	* posix/tst-spawn.c (do_test): Extend spargv to new required size and
	fix typo.
---
 ChangeLog         | 5 +++++
 posix/tst-spawn.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.17.1

Comments

Gabriel F. T. Gomes Jan. 5, 2019, 5:13 p.m. UTC | #1
On Sat, Jan 05 2019, Adhemerval Zanella wrote:
> Checked on powerpc64le-linux-gnu.


Thanks.  That did the trick!  :)
diff mbox series

Patch

diff --git a/posix/tst-spawn.c b/posix/tst-spawn.c
index b45e0d885e..eea5addbf3 100644
--- a/posix/tst-spawn.c
+++ b/posix/tst-spawn.c
@@ -154,7 +154,7 @@  do_test (int argc, char *argv[])
   char fd4name[18];
   char fd5name[18];
   char *name3_copy;
-  char *spargv[12];
+  char *spargv[13];
   int i;
 
   /* We must have
@@ -169,7 +169,7 @@  do_test (int argc, char *argv[])
        + the newly opened file descriptor
        + the duped second descriptor
        + the name of the closed descriptor
-       + the duped fourth dile descriptor which O_CLOEXEC should be
+       + the duped fourth file descriptor which O_CLOEXEC should be
 	 remove by adddup2.
   */
   if (argc != (restart ? 7 : 2) && argc != (restart ? 7 : 5))