From 7c56fb836bb3dc790c5cff9ad6464c81df1560d6 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Thu, 15 May 2025 16:49:53 -0400 Subject: [PATCH] Fix Wformat-overflow Issues Regarding Previous Commit; --- src/dsd_file.c | 2 +- src/dsd_ncurses_handler.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dsd_file.c b/src/dsd_file.c index a5cf230..a030aca 100644 --- a/src/dsd_file.c +++ b/src/dsd_file.c @@ -699,7 +699,7 @@ void rotate_symbol_out_file (dsd_opts * opts, dsd_state * state) //add a system event to echo in the event history state->event_history_s[0].Event_History_Items[0].color_pair = 4; - char event_str[200]; memset (event_str, 0, sizeof(event_str)); + char event_str[2000]; memset (event_str, 0, sizeof(event_str)); sprintf (event_str, "DSD-FME Dibit Capture File Rotated: %s;", opts->symbol_out_file); watchdog_event_datacall (opts, state, 0xFFFFFF, 0xFFFFFF, event_str, 0); state->lastsrc = 0; //this could wipe a call, but usually on TDMA cc's, slot 1 is the control channel, so may never be set when this is run diff --git a/src/dsd_ncurses_handler.c b/src/dsd_ncurses_handler.c index 9b1b0c1..3ca0caa 100644 --- a/src/dsd_ncurses_handler.c +++ b/src/dsd_ncurses_handler.c @@ -299,7 +299,7 @@ uint8_t ncurses_input_handler(dsd_opts * opts, dsd_state * state, int c) //add a system event to echo in the event history state->event_history_s[0].Event_History_Items[0].color_pair = 4; - char event_str[200]; memset (event_str, 0, sizeof(event_str)); + char event_str[2000]; memset (event_str, 0, sizeof(event_str)); sprintf (event_str, "DSD-FME Dibit Capture File Started: %s;", opts->symbol_out_file); watchdog_event_datacall (opts, state, 0xFFFFFF, 0xFFFFFF, event_str, 0); state->lastsrc = 0; //this could wipe a call src if they hit 'R' while call in slot 1 in progress @@ -330,7 +330,7 @@ uint8_t ncurses_input_handler(dsd_opts * opts, dsd_state * state, int c) //add a system event to echo in the event history state->event_history_s[0].Event_History_Items[0].color_pair = 4; - char event_str[200]; memset (event_str, 0, sizeof(event_str)); + char event_str[2000]; memset (event_str, 0, sizeof(event_str)); sprintf (event_str, "DSD-FME Dibit Capture File Closed: %s;", opts->symbol_out_file); watchdog_event_datacall (opts, state, 0xFFFFFF, 0xFFFFFF, event_str, 0); state->lastsrc = 0; //this could wipe a call src if they hit 'R' while call in slot 1 in progress