Fix wspr_encode buffer overflow

pull/25/head
Jason Milldrum 2021-06-29 12:10:49 -07:00
rodzic 9fedd042d4
commit 3fd4a16375
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -201,8 +201,8 @@ void JTEncode::jt4_encode(const char * msg, uint8_t * symbols)
*/
void JTEncode::wspr_encode(const char * call, const char * loc, const int8_t dbm, uint8_t * symbols)
{
char call_[7];
char loc_[5];
char call_[12];
char loc_[7];
uint8_t dbm_ = dbm;
strcpy(call_, call);
strcpy(loc_, loc);