mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calculations] Resolve bug in ring buffer
Change-Id: I1e34530f0e257e5e6a04c4ce974461888279b486
This commit is contained in:
@@ -31,6 +31,15 @@ Calculation::~Calculation() {
|
||||
}
|
||||
}
|
||||
|
||||
Calculation& Calculation::operator=(const Calculation& other) {
|
||||
const char * otherInputText = other.m_inputText;
|
||||
const char * otherOutputText = other.m_outputText;
|
||||
reset();
|
||||
strlcpy(m_inputText, otherInputText, sizeof(m_inputText));
|
||||
strlcpy(m_outputText, otherOutputText, sizeof(m_outputText));
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Calculation::reset() {
|
||||
m_inputText[0] = 0;
|
||||
m_outputText[0] = 0;
|
||||
|
||||
Reference in New Issue
Block a user