Fix bugs. Sketch3D stable.

This commit is contained in:
IlyaShurupov 2024-03-18 10:42:01 +03:00
parent 0f4a67e244
commit 3cdc5fbbef
9 changed files with 45 additions and 32 deletions

View file

@ -62,6 +62,8 @@ namespace tp {
DEBUG_ASSERT(mReferenceCount == 1 && !mIsConst)
delete[] mBuff;
mBuff = new tChar[size + 1];
// set non-zero value so that size() function wont return size that may be less that actual
memSetVal(mBuff, size, 1);
mBuff[size] = Logic::getEndChar();
}
};