aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fgetwc.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fgetwc.c')
-rw-r--r--newlib/libc/stdio/fgetwc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fgetwc.c b/newlib/libc/stdio/fgetwc.c
index 0f7cf0f..38a79bc 100644
--- a/newlib/libc/stdio/fgetwc.c
+++ b/newlib/libc/stdio/fgetwc.c
@@ -129,7 +129,7 @@ _DEFUN(__fgetwc, (ptr, fp),
}
do
{
- nconv = _mbrtowc_r (ptr, &wc, fp->_p, fp->_r, &fp->_mbstate);
+ nconv = _mbrtowc_r (ptr, &wc, (char *) fp->_p, fp->_r, &fp->_mbstate);
if (nconv == (size_t)-1)
break;
else if (nconv == (size_t)-2)