diff --git a/src/zm_buffer.cpp b/src/zm_buffer.cpp index b270d993f..b4b970eb3 100644 --- a/src/zm_buffer.cpp +++ b/src/zm_buffer.cpp @@ -65,8 +65,9 @@ unsigned int Buffer::expand(unsigned int count) { int Buffer::read_into(int sd, unsigned int bytes) { // Make sure there is enough space this->expand(bytes); - int bytes_read = read(sd, mTail, bytes); - if ( bytes_read > 0 ) { + Debug(3, "Reading %u btes", bytes); + int bytes_read = ::read(sd, mTail, bytes); + if (bytes_read > 0) { mTail += bytes_read; mSize += bytes_read; }