[Pager] Fixed strncpy length
This commit is contained in:
parent
0e43ee0efa
commit
ae04d3dbb3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue