aboutsummaryrefslogtreecommitdiff
path: root/libio/wstrops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/wstrops.c')
-rw-r--r--libio/wstrops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/wstrops.c b/libio/wstrops.c
index 64cdf52aa7..3c9c4971e8 100644
--- a/libio/wstrops.c
+++ b/libio/wstrops.c
@@ -291,7 +291,7 @@ _IO_wstr_pbackfail (fp, c)
_IO_FILE *fp;
_IO_wint_t c;
{
- if ((fp->_flags & _IO_NO_WRITES) && c != EOF)
+ if ((fp->_flags & _IO_NO_WRITES) && c != WEOF)
return WEOF;
return INTUSE(_IO_wdefault_pbackfail) (fp, c);
}