mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 09:17:20 -05:00
Event History Setup; #287
Fix -Wformat-overflow warning regarding writing imported names into a char array;
This commit is contained in:
@@ -5090,14 +5090,14 @@ void watchdog_event_current (dsd_opts * opts, dsd_state * state, uint8_t slot)
|
||||
|
||||
if (t_name_loaded)
|
||||
{
|
||||
char group[400];
|
||||
sprintf (group, "T Name: %s; Mode: %s; ", t_name, t_mode);
|
||||
char group[420];
|
||||
sprintf (group, "TName: %s; Mode: %s; ", t_name, t_mode);
|
||||
strcat (event_string, group);
|
||||
}
|
||||
if (s_name_loaded)
|
||||
{
|
||||
char private[400];
|
||||
sprintf (private, "S Name: %s; Mode: %s; ", s_name, s_mode);
|
||||
char private[420];
|
||||
sprintf (private, "SName: %s; Mode: %s; ", s_name, s_mode);
|
||||
strcat (event_string, private);
|
||||
}
|
||||
|
||||
|
||||
@@ -745,9 +745,11 @@ void NXDN_decode_Alias(dsd_opts * opts, dsd_state * state, uint8_t * Message)
|
||||
|
||||
char str_a[120]; char str_b[50];
|
||||
|
||||
//TODO: Revisit the debug here and see if anythign comes out of it,
|
||||
//maybe go on the assumptiont his works very similar to DMR talker alias
|
||||
//debug/test
|
||||
// fprintf (stderr, " U1: %02X U2: %02X;", unk1, unk2);
|
||||
// fprintf (stderr, " A:%d/%d; ", blocknumber, total);
|
||||
// fprintf (stderr, " U1: %02X U2: %02X;", unk1, unk2); //these always appear to be the same two byte values, even across different systems and languages
|
||||
// fprintf (stderr, " A:%d/%d; ", blocknumber, total); //this is accurate info here
|
||||
|
||||
//sanity check to prevent OOB array assignment
|
||||
if (blocknumber > 0 && blocknumber < 4) //last 'block' may have been assigning garbage name values -- I'm honestly not sure block'4' contains Alias data, but other data or something
|
||||
|
||||
Reference in New Issue
Block a user