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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user