1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

Replace sprintf by snprintf wherever possible

This commit is contained in:
f4exb
2025-04-21 13:31:12 +02:00
parent 2e1411311b
commit 77b2b815b8
9 changed files with 43 additions and 42 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ void AMBEEngine::getComList()
// Arbitrarily set the list to the 20 first COM ports
for (int i = 1; i <= 20; i++)
{
sprintf(comCStr, "COM%d", i);
snprintf(comCStr, sizeof(comCStr), "COM%d", i);
m_comList.push_back(std::string(comCStr));
}
}