summaryrefslogtreecommitdiff
path: root/libio/strops.c
diff options
context:
space:
mode:
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-17 02:10:30 +0000
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-17 02:10:30 +0000
commitbf26a763c1e776702d048ac9aeb54e4a8f236142 (patch)
treeec8bc8970ee5c778686fb6fbdce8f6ac79e40527 /libio/strops.c
parent76fdac58e75c849ff30065a3a8659e16fb1fac33 (diff)
downloadgcc-bf26a763c1e776702d048ac9aeb54e4a8f236142.tar.gz
Fix all problems reported by the test suite.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15505 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio/strops.c')
-rw-r--r--libio/strops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/strops.c b/libio/strops.c
index f7c22627e71..a9f812e0451 100644
--- a/libio/strops.c
+++ b/libio/strops.c
@@ -200,8 +200,8 @@ _IO_ssize_t
_IO_str_count (fp)
_IO_FILE *fp;
{
- return ((fp->_IO_write_end > fp->_IO_read_end
- ? fp->_IO_write_end : fp->_IO_read_end)
+ return ((fp->_IO_write_ptr > fp->_IO_read_end
+ ? fp->_IO_write_ptr : fp->_IO_read_end)
- fp->_IO_read_base);
}