From: etxrab Date: Mon, 28 Nov 2011 18:10:57 +0000 (+0000) Subject: Fix Checkapi found errors. X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=a06437db6dba29197c1380d39b5efcd712dfce6b Fix Checkapi found errors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40030 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/epan/dissectors/packet-bfd.c b/epan/dissectors/packet-bfd.c index 9594010512..021c26ef01 100644 --- a/epan/dissectors/packet-bfd.c +++ b/epan/dissectors/packet-bfd.c @@ -831,32 +831,32 @@ void proto_register_bfd(void) { &hf_mep_tunnel_no, { "Tunnel Number", "mep.tunnel.no", FT_UINT16, BASE_DEC, NULL , 0x0, - "Tunnel Number", HFILL } + NULL, HFILL } }, { &hf_mep_lsp_no, { "LSP Number", "mep.lsp.no", FT_UINT16, BASE_DEC, NULL , 0x0, - "LSP Number", HFILL } + NULL, HFILL } }, { &hf_mep_ac_id, { "AC Id", "mep.ac.id", FT_UINT32, BASE_DEC, NULL , 0x0, - "AC Identifier", HFILL } + NULL, HFILL } }, { &hf_mep_agi_type, { "AGI TYPE", "mep.agi.type", FT_UINT8, BASE_DEC, NULL , 0x0, - "AGI TYPE", HFILL } + NULL, HFILL } }, { &hf_mep_agi_len, { "AGI Length", "mep.agi.len", FT_UINT8, BASE_DEC, NULL , 0x0, - "AGI Length", HFILL } + NULL, HFILL } }, { &hf_mep_agi_val, { "AGI value", "mep.agi.val", FT_STRING, BASE_NONE, NULL , 0x0, - "AGI String", HFILL } + NULL, HFILL } }, { &hf_section_interface_no, { "Interface Number", "mep.interface.no", diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c index 26384619be..8a04b852ff 100644 --- a/epan/dissectors/packet-gsm_a_gm.c +++ b/epan/dissectors/packet-gsm_a_gm.c @@ -6301,7 +6301,7 @@ dtap_sm_req_sec_pdp_act(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gui /* 36 TFT Traffic Flow Template 10.5.6.12 O TLV 3-257 */ ELEM_OPT_TLV(0x36, GSM_A_PDU_TYPE_GM, DE_TRAFFIC_FLOW_TEMPLATE, NULL); - /* 27 Protocol configuration options Protocol configuration options 10.5.6.3 O TLV 3 – 253 */ + /* 27 Protocol configuration options Protocol configuration options 10.5.6.3 O TLV 3 - 253 */ ELEM_OPT_TLV(0x27, GSM_A_PDU_TYPE_GM, DE_PRO_CONF_OPT, NULL); EXTRANEOUS_DATA_CHECK_EXPERT(curr_len, 0, pinfo); @@ -6327,7 +6327,7 @@ dtap_sm_req_sec_pdp_act_rej(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, /* SM cause SM cause 10.5.6.6 M V 1 */ ELEM_MAND_V(GSM_A_PDU_TYPE_GM, DE_SM_CAUSE, NULL); - /* 27 Protocol configuration options Protocol configuration options 10.5.6.3 O TLV 3 – 253 */ + /* 27 Protocol configuration options Protocol configuration options 10.5.6.3 O TLV 3 - 253 */ ELEM_OPT_TLV(0x27, GSM_A_PDU_TYPE_GM, DE_PRO_CONF_OPT, NULL); EXTRANEOUS_DATA_CHECK_EXPERT(curr_len, 0, pinfo); diff --git a/epan/dissectors/packet-mpls.c b/epan/dissectors/packet-mpls.c index 981dc0a32a..a8bd8354e6 100644 --- a/epan/dissectors/packet-mpls.c +++ b/epan/dissectors/packet-mpls.c @@ -836,13 +836,13 @@ dissect_mpls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } if (label == LABEL_GACH && bos) { - strcpy(PW_ACH,"Generic Associated Channel Header"); + g_strlcpy(PW_ACH,"Generic Associated Channel Header",50); next_tvb = tvb_new_subset_remaining(tvb, offset); dissect_pw_ach( next_tvb, pinfo, tree ); return; } else - strcpy(PW_ACH,"PW Associated Channel Header"); + g_strlcpy(PW_ACH,"PW Associated Channel Header",50); if (bos) break; }