diff options
Diffstat (limited to 'newlib/libc/stdio/fopen.c')
-rw-r--r-- | newlib/libc/stdio/fopen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c index ff2cbec46..bcd2287c5 100644 --- a/newlib/libc/stdio/fopen.c +++ b/newlib/libc/stdio/fopen.c @@ -136,7 +136,7 @@ _DEFUN (_fopen_r, (ptr, file, mode), if ((fp = __sfp (ptr)) == NULL) return NULL; - if ((f = _open_r (fp->_data, file, oflags, 0666)) < 0) + if ((f = _open_r (ptr, file, oflags, 0666)) < 0) { fp->_flags = 0; /* release */ return NULL; @@ -151,7 +151,7 @@ _DEFUN (_fopen_r, (ptr, file, mode), fp->_close = __sclose; if (fp->_flags & __SAPP) - fseek (fp, 0, SEEK_END); + _fseek_r (ptr, fp, 0, SEEK_END); #ifdef __SCLE if (__stextmode (fp->_file)) |