about summary refs log tree commit diff
path: root/posix/spawn_faction_adddup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/spawn_faction_adddup2.c')
-rw-r--r--posix/spawn_faction_adddup2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/spawn_faction_adddup2.c b/posix/spawn_faction_adddup2.c
index f8de8ca7f6..46dd5ed129 100644
--- a/posix/spawn_faction_adddup2.c
+++ b/posix/spawn_faction_adddup2.c
@@ -35,10 +35,10 @@ posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *file_actions,
   if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd)
     return EBADF;
 
-  /* Allocate more memory of needed.  */
+  /* Allocate more memory if needed.  */
   if (file_actions->__used == file_actions->__allocated
       && __posix_spawn_file_actions_realloc (file_actions) != 0)
-    /* THis can only mean we ran out of memory.  */
+    /* This can only mean we ran out of memory.  */
     return ENOMEM;
 
   /* Add the new value.  */