Misc. clang static analyzer fixes

This commit is contained in:
Émilie Feral
2020-12-08 10:45:49 +01:00
committed by LeaNumworks
parent c3ceb0074f
commit fe4e2e3e9d
5 changed files with 5 additions and 1 deletions

View File

@@ -107,6 +107,7 @@ void TitleBarView::refreshPreferences() {
I18n::Message::Deg :
(angleUnit == Preferences::AngleUnit::Radian ? I18n::Message::Rad : I18n::Message::Gon);
numberOfChar += strlcpy(buffer+numberOfChar, I18n::translate(angleMessage), bufferSize - numberOfChar);
assert(numberOfChar < bufferSize-1);
}
m_preferenceView.setText(buffer);
// Layout the exam mode icon if needed