[Pager] Fixed strncpy length

pull/609/head
jgromes 2022-10-02 00:00:50 +02:00
rodzic 0e43ee0efa
commit ae04d3dbb3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -264,7 +264,7 @@ int16_t PagerClient::readData(String& str, size_t len) {
// check tone-only tramsissions
if(length == 0) {
length = 6;
strncpy((char*)data, "<tone>", length);
strncpy((char*)data, "<tone>", length + 1);
}
// add null terminator