0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 22:31:25 +03:00

fix: increase string buffer size to avoid overflow

This commit is contained in:
bricky149 2023-10-23 18:17:26 +01:00
parent 35ba988657
commit 01d4d748de
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ void DTMF_Append(const char code)
void DTMF_HandleRequest(void)
{ // proccess the RX'ed DTMF characters
char String[20];
char String[21];
unsigned int Offset;
if (!g_dtmf_rx_pending)
@ -393,7 +393,7 @@ bool DTMF_Reply(void)
{
const uint16_t Delay = (g_eeprom.dtmf_preload_time < 150) ? 150 : g_eeprom.dtmf_preload_time;
const char *pString = NULL;
char String[20];
char String[23];
switch (g_dtmf_reply_state)
{

View File

@ -405,7 +405,7 @@ void UI_DisplayMain(void)
#endif
const unsigned int line0 = 0; // text screen line
const unsigned int line1 = 4;
char String[17];
char String[22];
unsigned int vfo_num;
center_line = CENTER_LINE_NONE;