From b091b8d26cf290d1f4fdf41820f01e87bb6b7d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Sat, 1 Mar 2008 17:23:39 +0000 Subject: Rewrote to use g_strlcpy and g_strlcat. svn path=/trunk/; revision=24525 --- asn1/h245/packet-h245-template.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'asn1/h245/packet-h245-template.c') 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 #include #include +#include #include #include @@ -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); } } -- cgit v1.2.3