mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 22:31:25 +03:00
Merge pull request #211 from bricky149/printf-overflow-fix
Increase string buffer sizes to avoid overflows
This commit is contained in:
commit
024c4bb79d
@ -203,7 +203,7 @@ void DTMF_Append(const char code)
|
|||||||
void DTMF_HandleRequest(void)
|
void DTMF_HandleRequest(void)
|
||||||
{ // proccess the RX'ed DTMF characters
|
{ // proccess the RX'ed DTMF characters
|
||||||
|
|
||||||
char String[20];
|
char String[21];
|
||||||
unsigned int Offset;
|
unsigned int Offset;
|
||||||
|
|
||||||
if (!g_dtmf_rx_pending)
|
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 uint16_t Delay = (g_eeprom.dtmf_preload_time < 150) ? 150 : g_eeprom.dtmf_preload_time;
|
||||||
const char *pString = NULL;
|
const char *pString = NULL;
|
||||||
char String[20];
|
char String[23];
|
||||||
|
|
||||||
switch (g_dtmf_reply_state)
|
switch (g_dtmf_reply_state)
|
||||||
{
|
{
|
||||||
|
@ -405,7 +405,7 @@ void UI_DisplayMain(void)
|
|||||||
#endif
|
#endif
|
||||||
const unsigned int line0 = 0; // text screen line
|
const unsigned int line0 = 0; // text screen line
|
||||||
const unsigned int line1 = 4;
|
const unsigned int line1 = 4;
|
||||||
char String[17];
|
char String[22];
|
||||||
unsigned int vfo_num;
|
unsigned int vfo_num;
|
||||||
|
|
||||||
center_line = CENTER_LINE_NONE;
|
center_line = CENTER_LINE_NONE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user