mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Fix obvious crash issue.
This commit is contained in:
@@ -1922,7 +1922,7 @@ bool CSerialModem::readVersion()
|
|||||||
LogInfo("Unknown CPU type: %u", m_buffer[6U]);
|
LogInfo("Unknown CPU type: %u", m_buffer[6U]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
char modeText[10U];
|
char modeText[100U];
|
||||||
::strcpy(modeText, "Modes:");
|
::strcpy(modeText, "Modes:");
|
||||||
if ((m_buffer[4U] & 0x01U) == 0x01U)
|
if ((m_buffer[4U] & 0x01U) == 0x01U)
|
||||||
::strcat(modeText, " D-Star");
|
::strcat(modeText, " D-Star");
|
||||||
|
|||||||
Reference in New Issue
Block a user