kopia lustrzana https://github.com/jgromes/RadioLib
[Pager] Fixed strncpy length
rodzic
0e43ee0efa
commit
ae04d3dbb3
|
@ -264,7 +264,7 @@ int16_t PagerClient::readData(String& str, size_t len) {
|
||||||
// check tone-only tramsissions
|
// check tone-only tramsissions
|
||||||
if(length == 0) {
|
if(length == 0) {
|
||||||
length = 6;
|
length = 6;
|
||||||
strncpy((char*)data, "<tone>", length);
|
strncpy((char*)data, "<tone>", length + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add null terminator
|
// add null terminator
|
||||||
|
|
Ładowanie…
Reference in New Issue