mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
DSD Demod: completed the string length comtrol in YSF message displa
This commit is contained in:
parent
fcfa6e7b3f
commit
4f12661c82
@ -539,7 +539,7 @@ void DSDDemodGUI::formatStatusText()
|
||||
snprintf(m_formatStatusText, 82, "%d ", (int) m_dsdDemod->getDecoder().getYSFDecoder().getFICHError());
|
||||
}
|
||||
|
||||
sprintf(&m_formatStatusText[2], "%s %s %d:%d %c%c",
|
||||
snprintf(&m_formatStatusText[2], 80, "%s %s %d:%d %c%c",
|
||||
DSDcc::DSDYSF::ysfDataTypeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getDataType()],
|
||||
DSDcc::DSDYSF::ysfCallModeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getCallMode()],
|
||||
m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getBlockTotal(),
|
||||
@ -560,13 +560,13 @@ void DSDDemodGUI::formatStatusText()
|
||||
|
||||
if ( m_dsdDemod->getDecoder().getYSFDecoder().radioIdMode())
|
||||
{
|
||||
sprintf(dest, "%-5s:%-5s",
|
||||
snprintf(dest, 10, "%-5s:%-5s",
|
||||
m_dsdDemod->getDecoder().getYSFDecoder().getDestId(),
|
||||
m_dsdDemod->getDecoder().getYSFDecoder().getSrcId());
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(dest, "%-10s", m_dsdDemod->getDecoder().getYSFDecoder().getDest());
|
||||
snprintf(dest, 10, "%-10s", m_dsdDemod->getDecoder().getYSFDecoder().getDest());
|
||||
}
|
||||
|
||||
snprintf(&m_formatStatusText[17], 82-17, "|%-10s>%s|%-10s>%-10s|%-5s",
|
||||
|
Loading…
Reference in New Issue
Block a user