diff options
Diffstat (limited to 'libio/iofsetpos.c')
-rw-r--r-- | libio/iofsetpos.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libio/iofsetpos.c b/libio/iofsetpos.c index d7b1abb..4df1aae 100644 --- a/libio/iofsetpos.c +++ b/libio/iofsetpos.c @@ -58,8 +58,7 @@ _IO_new_fsetpos (FILE *fp, const __fpos_t *posp) else { result = 0; - if (fp->_mode > 0 - && (*fp->_codecvt->__codecvt_do_encoding) (fp->_codecvt) < 0) + if (fp->_mode > 0 && __libio_codecvt_encoding (fp->_codecvt) < 0) /* This is a stateful encoding, restore the state. */ fp->_wide_data->_IO_state = posp->__state; } |