Fixes a bug in back to back iostream reads

This commit is contained in:
Peter Thorson
2013-03-17 18:24:36 -05:00
parent 727328cc9a
commit 2584aed3d9

View File

@@ -195,7 +195,7 @@ private:
break;
}
in.read(m_buf,m_len-m_cursor);
in.read(m_buf+m_cursor,m_len-m_cursor);
if (in.gcount() == 0) {
m_elog.write(log::elevel::devel,"read zero bytes");