Fix bugs. Sketch3D stable.

This commit is contained in:
IlyaShurupov 2024-03-18 10:42:01 +03:00 committed by Ilya Shurupov
parent cd8feaf2c0
commit e065dc736b
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();
}
};