Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/tmpfile.c')
-rw-r--r--newlib/libc/stdio/tmpfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/tmpfile.c b/newlib/libc/stdio/tmpfile.c
index 4b31396e2..c38e61d34 100644
--- a/newlib/libc/stdio/tmpfile.c
+++ b/newlib/libc/stdio/tmpfile.c
@@ -59,9 +59,9 @@ _DEFUN (_tmpfile_r, (ptr),
if ((f = _tmpnam_r (ptr, buf)) == NULL)
return NULL;
- fp = fopen (f, "wb+");
+ fp = _fopen_r (ptr, f, "wb+");
e = ptr->_errno;
- _CAST_VOID remove (f);
+ _CAST_VOID _remove_r (ptr, f);
ptr->_errno = e;
return fp;
}