summaryrefslogtreecommitdiff
path: root/posix/spawn_faction_addopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/spawn_faction_addopen.c')
-rw-r--r--posix/spawn_faction_addopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/spawn_faction_addopen.c b/posix/spawn_faction_addopen.c
index 3e0c62659e..f438ec1c1e 100644
--- a/posix/spawn_faction_addopen.c
+++ b/posix/spawn_faction_addopen.c
@@ -36,10 +36,10 @@ posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *file_actions,
if (fd < 0 || fd >= 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. */