diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 66649cbae..2b4367c91 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -5074,9 +5074,9 @@ FurnaceGUI::FurnaceGUI(): memset(emptyLabel,0,32); memset(emptyLabel2,0,32); - strncat(noteOffLabel,"OFF",32); - strncat(noteRelLabel,"===",32); - strncat(macroRelLabel,"REL",32); - strncat(emptyLabel,"...",32); - strncat(emptyLabel2,"..",32); + strncpy(noteOffLabel,"OFF",32); + strncpy(noteRelLabel,"===",32); + strncpy(macroRelLabel,"REL",32); + strncpy(emptyLabel,"...",32); + strncpy(emptyLabel2,"..",32); } diff --git a/src/gui/settings.cpp b/src/gui/settings.cpp index 6c300d0a4..ee35fd86c 100644 --- a/src/gui/settings.cpp +++ b/src/gui/settings.cpp @@ -2781,7 +2781,7 @@ void setupLabel(const char* lStr, char* label, int len) { memset(label,0,32); for (int i=0, p=0; i