diff options
-rw-r--r-- | epan/dissectors/packet-rtcp.h | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-rtp.h | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-t38.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-t38.h | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-rtcp.h b/epan/dissectors/packet-rtcp.h index 096d24b39a..3cddf39ae2 100644 --- a/epan/dissectors/packet-rtcp.h +++ b/epan/dissectors/packet-rtcp.h @@ -30,12 +30,12 @@ /* Info to save in RTCP conversation / packet-info. Note that this structure applies to the destination end of an RTP session */ -#define MAX_RTCP_SETUP_METHOD_SIZE 8 +#define MAX_RTCP_SETUP_METHOD_SIZE 7 struct _rtcp_conversation_info { /* Setup info is relevant to traffic whose dest is the conversation address */ guchar setup_method_set; - gchar setup_method[MAX_RTCP_SETUP_METHOD_SIZE]; + gchar setup_method[MAX_RTCP_SETUP_METHOD_SIZE + 1]; guint32 setup_frame_number; /* Info used for roundtrip calculations */ diff --git a/epan/dissectors/packet-rtp.h b/epan/dissectors/packet-rtp.h index 276f35a64c..b6cff9b5ff 100644 --- a/epan/dissectors/packet-rtp.h +++ b/epan/dissectors/packet-rtp.h @@ -52,10 +52,10 @@ struct _rtp_info { }; /* Info to save in RTP conversation / packet-info */ -#define MAX_RTP_SETUP_METHOD_SIZE 8 +#define MAX_RTP_SETUP_METHOD_SIZE 7 struct _rtp_conversation_info { - gchar method[MAX_RTP_SETUP_METHOD_SIZE]; + gchar method[MAX_RTP_SETUP_METHOD_SIZE + 1]; guint32 frame_number; }; diff --git a/epan/dissectors/packet-t38.c b/epan/dissectors/packet-t38.c index 06327f5ce1..b7d05daa2a 100644 --- a/epan/dissectors/packet-t38.c +++ b/epan/dissectors/packet-t38.c @@ -233,7 +233,7 @@ void t38_add_address(packet_info *pinfo, * Update the conversation data. */ strncpy(p_conv_data->method, setup_method, MAX_T38_SETUP_METHOD_SIZE); - p_conv_data->method[MAX_T38_SETUP_METHOD_SIZE - 1] = '\0'; + p_conv_data->method[MAX_T38_SETUP_METHOD_SIZE] = '\0'; p_conv_data->frame_number = setup_frame_number; } diff --git a/epan/dissectors/packet-t38.h b/epan/dissectors/packet-t38.h index 2967edafc1..a972580d9f 100644 --- a/epan/dissectors/packet-t38.h +++ b/epan/dissectors/packet-t38.h @@ -26,10 +26,10 @@ */ /* Info to save in T38 conversation / packet-info */ -#define MAX_T38_SETUP_METHOD_SIZE 8 +#define MAX_T38_SETUP_METHOD_SIZE 7 struct _t38_conversation_info { - gchar method[MAX_T38_SETUP_METHOD_SIZE]; + gchar method[MAX_T38_SETUP_METHOD_SIZE + 1]; guint32 frame_number; }; |