Fix buffer terminator overwrite in jt_message_prep

pull/25/head
Jason Milldrum 2021-06-30 17:54:52 -07:00
rodzic b95463a730
commit 6b9b78d8b1
1 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -578,12 +578,10 @@ void JTEncode::jt_message_prep(char * message)
// Pad the message with trailing spaces
uint8_t len = strlen(message);
if(len < 13)
for(i = len; i < 13; i++)
{
for(i = len; i <= 13; i++)
{
message[i] = ' ';
}
message[i] = ' ';
}
// Convert all chars to uppercase