aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h245/packet-h245-template.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-03-01 17:23:39 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-03-01 17:23:39 +0000
commitb091b8d26cf290d1f4fdf41820f01e87bb6b7d6d (patch)
tree75b52bc6b03f8df488b8acbe97063df9d6d8b02d /asn1/h245/packet-h245-template.c
parent346d46b8d020d0b5bdd9757622cdec2625349a10 (diff)
Rewrote to use g_strlcpy and g_strlcat.
svn path=/trunk/; revision=24525
Diffstat (limited to 'asn1/h245/packet-h245-template.c')
-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);
}
}