Added assertion in shiftBuffer to check size.

pull/1/head
Tatsuhiro Tsujikawa 2011-01-08 22:47:41 +09:00
parent 02ca3ed0b7
commit e5c27034f3
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ bool MSEHandshake::send()
void MSEHandshake::shiftBuffer(size_t offset)
{
assert(rbufLength_ >= offset);
memmove(rbuf_, rbuf_+offset, rbufLength_-offset);
rbufLength_ -= offset;
}