[Pager] Fixed strncpy length

This commit is contained in:
jgromes 2022-10-02 00:00:50 +02:00
parent 0e43ee0efa
commit ae04d3dbb3

View file

@ -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