mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 06:11:24 +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)
|
||||
{ // 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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user