Revert "Revert "Use snprintf in two places, replacing calls to deprecated sprintf()." (This had already been fixed by Steve!)"

This reverts commit f7928f060e.
This commit is contained in:
Joe Taylor 2023-01-07 13:38:48 -05:00
parent f7928f060e
commit 18ab1ce087

View File

@ -4819,9 +4819,9 @@ void MainWindow::guiUpdate()
if(m_transmitting) {
char s[42];
if(SpecOp::FOX==m_specOp and ui->tabWidget->currentIndex()==1) {
sprintf(s,"Tx: %d Slots",foxcom_.nslots);
snprintf(s,sizeof(s),"Tx: %d Slots",foxcom_.nslots);
} else {
sprintf(s,"Tx: %s",msgsent);
snprintf(s,sizeof(s),"Tx: %s",msgsent);
}
m_nsendingsh=0;
if(s[4]==64) m_nsendingsh=1;