about summary refs log tree commit diff
path: root/libio/iofdopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofdopen.c')
-rw-r--r--libio/iofdopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iofdopen.c b/libio/iofdopen.c
index dc89576460..0a867f7c57 100644
--- a/libio/iofdopen.c
+++ b/libio/iofdopen.c
@@ -128,7 +128,7 @@ _IO_new_fdopen (fd, mode)
 #if  !_IO_UNIFIED_JUMPTABLES
   new_f->fp.vtable = NULL;
 #endif
-  if (_IO_file_attach (&new_f->fp.file, fd) == NULL)
+  if (_IO_file_attach ((_IO_FILE *) &new_f->fp, fd) == NULL)
     {
       _IO_un_link (&new_f->fp);
       free (new_f);