about summary refs log tree commit diff
path: root/libio/strops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/strops.c')
-rw-r--r--libio/strops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/strops.c b/libio/strops.c
index 9c2650f352..9fa48eadc3 100644
--- a/libio/strops.c
+++ b/libio/strops.c
@@ -193,7 +193,7 @@ _IO_ssize_t
 DEFUN(_IO_str_count, (fp),
       register _IO_FILE *fp)
 {
-  return (fp->_IO_write_ptr > fp->_IO_read_end ? fp->_IO_write_ptr
+  return (fp->_IO_write_end > fp->_IO_read_end ? fp->_IO_write_end
 	  : fp->_IO_read_end)
     - fp->_IO_read_base;
 }