diff options
author | kitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-05-28 22:02:20 +0000 |
---|---|---|
committer | kitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-05-28 22:02:20 +0000 |
commit | 69a90edcab5d6d3d52aa0c1a7a73c3278f01fe2f (patch) | |
tree | 8847b15909f4cbf99c9c3153ba9475a19efe97fc /ace/Read_Buffer.cpp | |
parent | f3d39d685722a798b1b0ed7b8610b634a1892fa5 (diff) | |
download | ATCD-69a90edcab5d6d3d52aa0c1a7a73c3278f01fe2f.tar.gz |
ChangeLogTag: Tue May 28 17:00:21 2002 Krishnakumar B <kitty@cs.wustl.edu>
Diffstat (limited to 'ace/Read_Buffer.cpp')
-rw-r--r-- | ace/Read_Buffer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ace/Read_Buffer.cpp b/ace/Read_Buffer.cpp index 16e53f5263a..4305bde362d 100644 --- a/ace/Read_Buffer.cpp +++ b/ace/Read_Buffer.cpp @@ -126,7 +126,9 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace) // Increment the number of bytes. // @@@ Temporary hack. We should solve this by abstracting the end-of-line // conventions and using it throughout ACE - this->size_ += slot == 0 ? 0 : slot - 1; + if (slot > 1) + slot = slot - 1; + this->size_ += slot; // Don't bother going any farther if the total size is 0. if (this->size_ == 0) |