diff options
-rw-r--r-- | epan/dissectors/packet-gsm_a_gm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c index 9e4050a9fd..eeaea7707c 100644 --- a/epan/dissectors/packet-gsm_a_gm.c +++ b/epan/dissectors/packet-gsm_a_gm.c @@ -3862,7 +3862,7 @@ de_sm_apn(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g curr_offset = offset; /* init buffer and copy it */ - memset(str, 0, MAX_APN_LENGTH); + memset(str, 0, MAX_APN_LENGTH+1); tvb_memcpy(tvb, str, offset, len<MAX_APN_LENGTH?len:MAX_APN_LENGTH); curr_len = 0; |