diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_dup.c')
| -rw-r--r-- | lib/libc_r/uthread/uthread_dup.c | 2 |
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 30af80b00208..68cf438d4708 100644 --- a/lib/libc_r/uthread/uthread_dup.c +++ b/lib/libc_r/uthread/uthread_dup.c @@ -58,7 +58,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: */ |
