summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-19 19:08:39 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-19 19:08:39 +0000
commit174d0ac200f11ebbc6664d8ad4b6d30fb62fbcd2 (patch)
tree742154f086761a6d82e64256565770b702cf617d
parent8c11e5ea784a97906c21289741a79659621038b1 (diff)
downloadATCD-174d0ac200f11ebbc6664d8ad4b6d30fb62fbcd2.tar.gz
Thu Aug 19 13:06:00 1999 Michael Kircher <Michael.Kircher@mchp.siemens.de>
-rw-r--r--ChangeLog-99b5
-rw-r--r--ace/Read_Buffer.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b
index a830f713850..8901a304ba3 100644
--- a/ChangeLog-99b
+++ b/ChangeLog-99b
@@ -1,3 +1,8 @@
+Thu Aug 19 13:06:00 1999 Michael Kircher <Michael.Kircher@mchp.siemens.de>
+
+ * ace/Read_Buffer.cpp: Fixed a bug in rec_read () method
+ which prohibited reading more than 1024 bytes at once.
+
Thu Aug 19 13:03:07 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
* ace/ACE.h (ACE): Fixed a "cut & paste" error in the comment --
diff --git a/ace/Read_Buffer.cpp b/ace/Read_Buffer.cpp
index b203f3b8d0e..82a85371b11 100644
--- a/ace/Read_Buffer.cpp
+++ b/ace/Read_Buffer.cpp
@@ -146,12 +146,13 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace)
return 0;
}
result += this->size_;
+
+ // Null terminate the buffer.
+ *result = '\0';
}
else if ((result = this->rec_read (term, search, replace)) == 0)
return 0;
- // Null terminate the buffer.
- *result = '\0';
// Copy buf into the appropriate location starting from end of
// buffer. Peter says this is confusing and that we should use