summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fgetws.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fgetws.c')
-rw-r--r--newlib/libc/stdio/fgetws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fgetws.c b/newlib/libc/stdio/fgetws.c
index 30e8ebbf2..2784f1513 100644
--- a/newlib/libc/stdio/fgetws.c
+++ b/newlib/libc/stdio/fgetws.c
@@ -108,7 +108,7 @@ _DEFUN(_fgetws_r, (ptr, ws, n, fp),
wsp = ws;
do
{
- src = fp->_p;
+ src = (char *) fp->_p;
nl = memchr (fp->_p, '\n', fp->_r);
nconv = _mbsrtowcs_r (ptr, wsp, &src,
nl != NULL ? (nl - fp->_p + 1) : fp->_r,