diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-06-06 04:42:47 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-06-06 04:42:47 +0000 |
commit | 07dc5272a1b775dcb367190d6469ee420bd5a603 (patch) | |
tree | ce0e294b53af470cdfc0b5b690436b6628f860ce /ace/Read_Buffer.cpp | |
parent | d6fdfce3856fd280f06fdbe0d4b4fc4e6f077d76 (diff) | |
download | ATCD-07dc5272a1b775dcb367190d6469ee420bd5a603.tar.gz |
.
Diffstat (limited to 'ace/Read_Buffer.cpp')
-rw-r--r-- | ace/Read_Buffer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/Read_Buffer.cpp b/ace/Read_Buffer.cpp index 17c546ccdf5..b203f3b8d0e 100644 --- a/ace/Read_Buffer.cpp +++ b/ace/Read_Buffer.cpp @@ -89,18 +89,18 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace) char buf[BUFSIZ]; int c = EOF; - size_t index = 0; + size_t slot = 0; int done = 0; // Read in the file char by char - while (index < BUFSIZ) + while (slot < BUFSIZ) { c = getc (this->stream_); // Don't insert EOF into the buffer... if (c == EOF) { - if (index == 0) + if (slot == 0) return 0; else { @@ -120,7 +120,7 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace) c = replace; } - buf[index++] = (char) c; + buf[slot++] = (char) c; // Substitutions must be made before checking for termination. if (done) @@ -128,7 +128,7 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace) } // Increment the number of bytes. - this->size_ += index; + this->size_ += slot; char *result; @@ -156,7 +156,7 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace) // Copy buf into the appropriate location starting from end of // buffer. Peter says this is confusing and that we should use // memcpy() ;-) - for (size_t j = index; j > 0; j--) + for (size_t j = slot; j > 0; j--) *--result = buf[j - 1]; return result; |