diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-06-19 14:32:24 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-06-19 14:32:24 +0000 |
commit | 85aad383470b677d8aa2e340536afe917d9c9907 (patch) | |
tree | f53c0486dfcd60b49fe337935db69292996a71d9 /epan/dissectors/packet-ip.c | |
parent | 7c59ac028086d017ad82498ed1acafcb4ed0c05b (diff) |
Add proto_tree_add_unicode_string() to add UTF-8 string to tree.
Convert some proto_tree_add_string_format_value(..., val, "%s", val); to use new function.
svn path=/trunk/; revision=43363
Diffstat (limited to 'epan/dissectors/packet-ip.c')
-rw-r--r-- | epan/dissectors/packet-ip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 092487d062..a9552fcfec 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -563,11 +563,11 @@ add_geoip_info_entry(proto_item *geoip_info_item, tvbuff_t *tvb, gint offset, gu PROTO_ITEM_SET_GENERATED(item); PROTO_ITEM_SET_HIDDEN(item); } else { - item = proto_tree_add_string_format_value(geoip_info_tree, geoip_local_hf, - tvb, offset, 4, geoip_str, "%s", geoip_str); + item = proto_tree_add_unicode_string(geoip_info_tree, geoip_local_hf, + tvb, offset, 4, geoip_str); PROTO_ITEM_SET_GENERATED(item); - item = proto_tree_add_string_format_value(geoip_info_tree, geoip_hf, - tvb, offset, 4, geoip_str, "%s", geoip_str); + item = proto_tree_add_unicode_string(geoip_info_tree, geoip_hf, + tvb, offset, 4, geoip_str); PROTO_ITEM_SET_GENERATED(item); PROTO_ITEM_SET_HIDDEN(item); } |