mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Coverity: fix unitialized pointer fields, out of bounds reads ...
Change-Id: Iae0656ffe667692dfb3bebf9bb7913b5872175c6
This commit is contained in:
committed by
EmilieNumworks
parent
c545a23ec6
commit
15610064fa
@@ -15,7 +15,7 @@ ValuesFunctionParameterController::ValuesFunctionParameterController(char symbol
|
||||
|
||||
const char * ValuesFunctionParameterController::title() {
|
||||
strlcpy(m_pageTitle, I18n::translate(I18n::Message::FunctionColumn), k_maxNumberOfCharsInTitle);
|
||||
for (int currentChar = 0; currentChar < k_maxNumberOfCharsInTitle; currentChar++) {
|
||||
for (int currentChar = 0; currentChar < k_maxNumberOfCharsInTitle-1; currentChar++) {
|
||||
if (m_pageTitle[currentChar] == '(') {
|
||||
m_pageTitle[currentChar-1] = *m_function->name();
|
||||
m_pageTitle[currentChar+1] = m_symbol;
|
||||
|
||||
Reference in New Issue
Block a user