mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
DSD demod: gcc7 warnings fixes
This commit is contained in:
parent
723df69943
commit
0b72c016ab
@ -527,17 +527,17 @@ void DSDDemodGUI::formatStatusText()
|
|||||||
strncpy(&m_formatStatusText[14], "---", 82-14);
|
strncpy(&m_formatStatusText[14], "---", 82-14);
|
||||||
}
|
}
|
||||||
|
|
||||||
char dest[12];
|
char dest[13];
|
||||||
|
|
||||||
if ( m_dsdDemod->getDecoder().getYSFDecoder().radioIdMode())
|
if ( m_dsdDemod->getDecoder().getYSFDecoder().radioIdMode())
|
||||||
{
|
{
|
||||||
snprintf(dest, 11, "%-5s:%-5s",
|
snprintf(dest, 12, "%-5s:%-5s",
|
||||||
m_dsdDemod->getDecoder().getYSFDecoder().getDestId(),
|
m_dsdDemod->getDecoder().getYSFDecoder().getDestId(),
|
||||||
m_dsdDemod->getDecoder().getYSFDecoder().getSrcId());
|
m_dsdDemod->getDecoder().getYSFDecoder().getSrcId());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
snprintf(dest, 10, "%-10s", m_dsdDemod->getDecoder().getYSFDecoder().getDest());
|
snprintf(dest, 11, "%-10s", m_dsdDemod->getDecoder().getYSFDecoder().getDest());
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(&m_formatStatusText[17], 82-17, "|%-10s>%s|%-10s>%-10s|%-5s",
|
snprintf(&m_formatStatusText[17], 82-17, "|%-10s>%s|%-10s>%-10s|%-5s",
|
||||||
|
Loading…
Reference in New Issue
Block a user