fix possible bug

This commit is contained in:
Eduardo Bart 2011-10-19 19:10:06 -02:00
parent da10f16a64
commit fb6f07bfc4
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public:
uint8* getBuffer() { return m_buffer; }
uint16 getMessageSize() { return m_messageSize; }
void setMessageSize(uint16 messageSize) { m_messageSize = messageSize; }
bool eof() { return m_readPos == m_messageSize; }
bool eof() { return m_readPos >= m_messageSize; }
private:
bool canRead(int bytes);