Fixedd buffer overflow in audio IO

This commit is contained in:
Ryzerth
2020-07-20 13:45:05 +02:00
parent 379d6f8101
commit d47679c5cf
3 changed files with 6 additions and 7 deletions

View File

@@ -43,6 +43,10 @@ namespace io {
devList = SoapySDR::Device::enumerate();
txtDevList = "";
if (devList.size() == 0) {
txtDevList += '\0';
return;
}
for (int i = 0; i < devList.size(); i++) {
txtDevList += devList[i]["label"];
txtDevList += '\0';