mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-23 04:28:36 -04:00
Use snprintf in two places, replacing calls to deprecated sprintf().
This commit is contained in:
parent
9e6de4fab4
commit
210ee2147e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user