]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - libio/iofgetpos.c
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / libio / iofgetpos.c
index 8032192440f19747d33f4d0b10e7da733e9ac19c..06ac51bb3464d779190587508156570bacb493e2 100644 (file)
@@ -13,7 +13,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.
+   <https://www.gnu.org/licenses/>.
 
    As a special exception, if you link the code in this file with
    files compiled with a GNU compiler to produce an executable,
@@ -70,8 +70,7 @@ _IO_new_fgetpos (FILE *fp, __fpos_t *posp)
   else
     {
       posp->__pos = pos;
-      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, safe the state.  */
        posp->__state = fp->_wide_data->_IO_state;
     }