summaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_dup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_dup.c')
-rw-r--r--lib/libc_r/uthread/uthread_dup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_dup.c b/lib/libc_r/uthread/uthread_dup.c
index 9fc2e583223ee..aaae6914679d3 100644
--- a/lib/libc_r/uthread/uthread_dup.c
+++ b/lib/libc_r/uthread/uthread_dup.c
@@ -59,7 +59,7 @@ _dup(int fd)
* 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));
}
/* Unlock the file descriptor: */