diff options
-rw-r--r-- | asn1/h245/packet-h245-template.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-h245.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/h245/packet-h245-template.c b/asn1/h245/packet-h245-template.c index f9cafb8481..05af9cafb6 100644 --- a/asn1/h245/packet-h245-template.c +++ b/asn1/h245/packet-h245-template.c @@ -279,7 +279,7 @@ dissect_h245_OpenLogicalChannelCodec(tvbuff_t *tvb, int offset, packet_info *pin if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChn; if (codec_str){ - g_strlcpy(codec_str, codec_type, 50); + strncpy(codec_str, codec_type, 50); } return offset; diff --git a/epan/dissectors/packet-h245.c b/epan/dissectors/packet-h245.c index e91ffa26d3..1132e5b06d 100644 --- a/epan/dissectors/packet-h245.c +++ b/epan/dissectors/packet-h245.c @@ -16365,7 +16365,7 @@ dissect_h245_OpenLogicalChannelCodec(tvbuff_t *tvb, int offset, packet_info *pin if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChn; if (codec_str){ - g_strlcpy(codec_str, codec_type, 50); + strncpy(codec_str, codec_type, 50); } return offset; |