1
0
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:
f4exb 2017-12-31 03:34:38 +01:00
parent 723df69943
commit 0b72c016ab

View File

@ -527,17 +527,17 @@ void DSDDemodGUI::formatStatusText()
strncpy(&m_formatStatusText[14], "---", 82-14);
}
char dest[12];
char dest[13];
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().getSrcId());
}
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",