diff --git a/src/protocols/Pager/Pager.cpp b/src/protocols/Pager/Pager.cpp index 37684208..85a6e76e 100644 --- a/src/protocols/Pager/Pager.cpp +++ b/src/protocols/Pager/Pager.cpp @@ -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, "", length); + strncpy((char*)data, "", length + 1); } // add null terminator