diff --git a/aprs_tt.c b/aprs_tt.c index cf00cc8..60b866f 100644 --- a/aprs_tt.c +++ b/aprs_tt.c @@ -422,7 +422,7 @@ void aprs_tt_sequence (int chan, char *msg) * Anything from script, above, will override other predefined responses. */ - char audible_response[1000]; + char audible_response[sizeof(script_response) + 16]; snprintf (audible_response, sizeof(audible_response), "APRSTT>%s:%s", diff --git a/ax25_pad.c b/ax25_pad.c index 036665b..46ae658 100644 --- a/ax25_pad.c +++ b/ax25_pad.c @@ -2025,7 +2025,7 @@ int ax25_pack (packet_t this_p, unsigned char result[AX25_MAX_PACKET_LEN]) * * Outputs: desc - Text description such as "I frame" or * "U frame SABME". - * Supply 40 bytes to be safe. + * Supply 56 bytes to be safe. * * cr - Command or response? * @@ -2041,7 +2041,7 @@ int ax25_pack (packet_t this_p, unsigned char result[AX25_MAX_PACKET_LEN]) // TODO: need someway to ensure caller allocated enough space. // Should pass in as parameter. -#define DESC_SIZ 40 +#define DESC_SIZ 56 ax25_frame_type_t ax25_frame_type (packet_t this_p, cmdres_t *cr, char *desc, int *pf, int *nr, int *ns) diff --git a/ax25_pad.h b/ax25_pad.h index 72155b2..22568f7 100644 --- a/ax25_pad.h +++ b/ax25_pad.h @@ -435,7 +435,7 @@ extern unsigned short ax25_m_m_crc (packet_t pp); extern void ax25_safe_print (char *, int, int ascii_only); -#define AX25_ALEVEL_TO_TEXT_SIZE 32 // overkill but safe. +#define AX25_ALEVEL_TO_TEXT_SIZE 40 // overkill but safe. extern int ax25_alevel_to_text (alevel_t alevel, char text[AX25_ALEVEL_TO_TEXT_SIZE]);