summaryrefslogtreecommitdiff
path: root/asn1/h245
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/h245')
-rw-r--r--asn1/h245/packet-h245-template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/asn1/h245/packet-h245-template.c b/asn1/h245/packet-h245-template.c
index 891fc55791..ccb2535f4a 100644
--- a/asn1/h245/packet-h245-template.c
+++ b/asn1/h245/packet-h245-template.c
@@ -39,6 +39,7 @@
#include <glib.h>
#include <epan/packet.h>
#include <epan/conversation.h>
+#include <epan/strutil.h>
#include <stdio.h>
#include <string.h>
@@ -445,7 +446,7 @@ dissect_h245_FastStart_OLC(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr
h245_pi->msg_type = H245_OpenLogChn;
if (codec_str && codec_type){
- strncpy(codec_str, codec_type, 50);
+ g_strlcpy(codec_str, codec_type, 50);
}
}