Use safer copy

This commit is contained in:
Reed Nightingale 2020-04-25 20:34:47 -07:00
parent 85ea714955
commit 1f5f3a1f9f
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void drawVersion()
void drawCallsign()
{
strcpy_P(b,CALLSIGN_STRING);
strncpy_P(b,CALLSIGN_STRING,sizeof(b));
displayText(b,LAYOUT_CW_TEXT_X,LAYOUT_CW_TEXT_Y,LAYOUT_CW_TEXT_WIDTH,LAYOUT_CW_TEXT_HEIGHT,COLOR_ACTIVE_TEXT,COLOR_BACKGROUND,COLOR_BACKGROUND);
}