Use tvb_get_ephemeral_string() instead of tvb_get_string()
svn path=/trunk/; revision=30000
This commit is contained in:
parent
6ec8e0ced3
commit
47bdc0fda3
|
@ -238,10 +238,9 @@ dissect_wow_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
tvb, offset, 2, TRUE);
|
||||
offset += 2;
|
||||
|
||||
string = g_strreverse(tvb_get_string(tvb, offset, 4));
|
||||
string = g_strreverse(tvb_get_ephemeral_string(tvb, offset, 4));
|
||||
proto_tree_add_string(wow_tree, hf_wow_gamename,
|
||||
tvb, offset, 4, string);
|
||||
g_free(string);
|
||||
offset += 4;
|
||||
|
||||
proto_tree_add_item(wow_tree, hf_wow_version1,
|
||||
|
@ -260,22 +259,19 @@ dissect_wow_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
offset, 2, TRUE);
|
||||
offset += 2;
|
||||
|
||||
string = g_strreverse(tvb_get_string(tvb, offset, 4));
|
||||
string = g_strreverse(tvb_get_ephemeral_string(tvb, offset, 4));
|
||||
proto_tree_add_string(wow_tree, hf_wow_platform,
|
||||
tvb, offset, 4, string);
|
||||
g_free(string);
|
||||
offset += 4;
|
||||
|
||||
string = g_strreverse(tvb_get_string(tvb, offset, 4));
|
||||
string = g_strreverse(tvb_get_ephemeral_string(tvb, offset, 4));
|
||||
proto_tree_add_string(wow_tree, hf_wow_os, tvb,
|
||||
offset, 4, string);
|
||||
g_free(string);
|
||||
offset += 4;
|
||||
|
||||
string = g_strreverse(tvb_get_string(tvb, offset, 4));
|
||||
string = g_strreverse(tvb_get_ephemeral_string(tvb, offset, 4));
|
||||
proto_tree_add_string(wow_tree, hf_wow_country,
|
||||
tvb, offset, 4, string);
|
||||
g_free(string);
|
||||
offset += 4;
|
||||
|
||||
proto_tree_add_item(wow_tree,
|
||||
|
|
Loading…
Reference in New Issue