Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Feb 25, 2021
1 parent cdc1378 commit 793bee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eez/modules/psu/gui/psu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ uint32_t PsuAppContext::getAsyncInProgressStartTime() {
}

void PsuAppContext::setTextMessage(const char *message, unsigned int len) {
stringCopy(m_textMessage, MIN(len, sizeof(m_textMessage)), message);
stringCopy(m_textMessage, MIN(len + 1, sizeof(m_textMessage)), message);
m_showTextMessage = true;
}

Expand Down

0 comments on commit 793bee7

Please sign in to comment.