1
This commit is contained in:
parent
b08e735f3c
commit
0cda98b651
@ -44,7 +44,10 @@ namespace a8
|
||||
BufHead* buf_head = (BufHead*)(p - sizeof(BufHead));
|
||||
head_ += sizeof(BufHead) + buf_head->len;
|
||||
if (head_ >= buf_len_) {
|
||||
capacity_ += sizeof(BufHead) + buf_head->len + (buf_len_ - head_);
|
||||
head_ = 0;
|
||||
} else {
|
||||
capacity_ += sizeof(BufHead) + buf_head->len;
|
||||
}
|
||||
} else {
|
||||
free(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user