mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Test: fix printText
This commit is contained in:
committed by
LeaNumworks
parent
d0a77bda2b
commit
ec5803f06f
@@ -7,7 +7,8 @@ char TestExecutionEnvironment::s_pythonHeap[TestExecutionEnvironment::s_pythonHe
|
||||
|
||||
void TestExecutionEnvironment::printText(const char * text, size_t length) {
|
||||
assert(m_printTextIndex + length < k_maxPrintedTextSize);
|
||||
m_printTextIndex += strlcpy(m_printTextBuffer + m_printTextIndex, text, length + 1);
|
||||
strlcpy(m_printTextBuffer + m_printTextIndex, text, length + 1);
|
||||
m_printTextIndex += length;
|
||||
m_printTextBuffer[m_printTextIndex] = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user