diff options
Diffstat (limited to 'src/isi-network.c')
-rw-r--r-- | src/isi-network.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/isi-network.c b/src/isi-network.c index 579d097..3462d58 100644 --- a/src/isi-network.c +++ b/src/isi-network.c @@ -20,9 +20,9 @@ #endif #include <glib.h> +#include <stdlib.h> #include <epan/prefs.h> #include <epan/packet.h> -#include <epan/expert.h> #include "packet-isi.h" #include "isi-network.h" @@ -526,7 +526,7 @@ static void _sub_gsm_reg_network_info(tvbuff_t *tvb, proto_tree *tree) { guint8 l = tvb_get_guint8(tvb, 5); proto_tree_add_item(tree, hf_isi_network_name_type, tvb, 2, 1, FALSE); proto_tree_add_item(tree, hf_isi_network_country_initials, tvb, 3, 1, FALSE); - char *utf16 = tvb_memdup(tvb, 6, l*2); + char *utf16 = tvb_memdup(NULL, tvb, 6, l*2); char *ascii = utf16_to_ascii(utf16, l); proto_tree_add_string(tree, hf_isi_network_status_sub_msg, tvb, 6, l*2, ascii); } @@ -587,7 +587,7 @@ static void dissect_isi_network_subpacket(guint8 sptype, tvbuff_t *tvb, packet_i case 0xE7: /* NET_OPER_NAME_INFO */ default: //proto_tree_add_item(tree, hf_isi_network_data_sub_type, tvb, - expert_add_info_format(pinfo, item, PI_PROTOCOL, PI_WARN, "unsupported packet"); + expert_add_info_format(pinfo, item, &ei_isi_unknown_packet, "unsupported packet"); break; } } @@ -821,7 +821,7 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i break; default: col_set_str(pinfo->cinfo, COL_INFO, "unknown Network packet"); - expert_add_info_format(pinfo, item, PI_PROTOCOL, PI_WARN, "unsupported packet"); + expert_add_info_format(pinfo, item, &ei_isi_unknown_packet, "unsupported packet"); break; } } |