summaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_dup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_dup2.c')
-rw-r--r--lib/libc_r/uthread/uthread_dup2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_dup2.c b/lib/libc_r/uthread/uthread_dup2.c
index d8cead7f3c62f..739a7ad897dbe 100644
--- a/lib/libc_r/uthread/uthread_dup2.c
+++ b/lib/libc_r/uthread/uthread_dup2.c
@@ -81,8 +81,8 @@ _dup2(int fd, int newfd)
* Save the file open flags so that
* they can be checked later:
*/
- _thread_fd_table[ret]->flags =
- _thread_fd_table[fd]->flags;
+ _thread_fd_setflags(ret,
+ _thread_fd_getflags(fd));
}
}