This breaks
This commit is contained in:
parent
df26c25ac9
commit
8d883ee7bf
|
@ -141,7 +141,7 @@ class Buffer {
|
||||||
if (mHead != mStorage) {
|
if (mHead != mStorage) {
|
||||||
if (mSize == 0) {
|
if (mSize == 0) {
|
||||||
mHead = mTail = mStorage;
|
mHead = mTail = mStorage;
|
||||||
*mHead = '\0';
|
//*mHead = '\0';
|
||||||
} else if (level) {
|
} else if (level) {
|
||||||
if (((uintptr_t)mHead-(uintptr_t)mStorage) > mSize) {
|
if (((uintptr_t)mHead-(uintptr_t)mStorage) > mSize) {
|
||||||
std::memcpy(mStorage, mHead, mSize);
|
std::memcpy(mStorage, mHead, mSize);
|
||||||
|
|
Loading…
Reference in New Issue