diff options
Diffstat (limited to 'epan/dissectors/packet-nasdaq-itch.c')
-rw-r--r-- | epan/dissectors/packet-nasdaq-itch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-nasdaq-itch.c b/epan/dissectors/packet-nasdaq-itch.c index bbb008c3a5..2ce2a2e8e4 100644 --- a/epan/dissectors/packet-nasdaq-itch.c +++ b/epan/dissectors/packet-nasdaq-itch.c @@ -152,7 +152,7 @@ static int hf_nasdaq_itch_cross = -1; static int order_ref_number(tvbuff_t *tvb, packet_info *pinfo, proto_tree *nasdaq_itch_tree, int offset) { - const char *str_value = tvb_get_ephemeral_string(tvb, offset, 9); + const char *str_value = tvb_get_string(wmem_packet_scope(), tvb, offset, 9); guint32 value = (guint32)strtoul(str_value, NULL, 10); proto_tree_add_uint(nasdaq_itch_tree, hf_nasdaq_itch_order_reference, tvb, offset, 9, value); @@ -169,7 +169,7 @@ time_stamp(tvbuff_t *tvb, proto_tree *nasdaq_itch_tree, int id, int offset, int if (nasdaq_itch_tree) { guint32 ms, val; const char *display = ""; - const char *str_value = tvb_get_ephemeral_string(tvb, offset, size); + const char *str_value = tvb_get_string(wmem_packet_scope(), tvb, offset, size); ms = val = (guint32)strtoul(str_value, NULL, 10); switch (size) { @@ -193,7 +193,7 @@ static int number_of_shares(tvbuff_t *tvb, packet_info *pinfo, proto_tree *nasdaq_itch_tree, int id, int offset, int big) { gint size = (big)?10:6; - const char *str_value = tvb_get_ephemeral_string(tvb, offset, size); + const char *str_value = tvb_get_string(wmem_packet_scope(), tvb, offset, size); guint32 value = (guint32)strtoul(str_value, NULL, 10); @@ -209,7 +209,7 @@ price(tvbuff_t *tvb, packet_info *pinfo, proto_tree *nasdaq_itch_tree, int id, i { gint size = (big)?19:10; - const char *str_value = tvb_get_ephemeral_string(tvb, offset, size); + const char *str_value = tvb_get_string(wmem_packet_scope(), tvb, offset, size); gdouble value = guint64_to_gdouble(g_ascii_strtoull(str_value, NULL, 10))/((big)?1000000.0:10000.0); proto_tree_add_double(nasdaq_itch_tree, id, tvb, offset, size, value); @@ -222,7 +222,7 @@ price(tvbuff_t *tvb, packet_info *pinfo, proto_tree *nasdaq_itch_tree, int id, i static int stock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *nasdaq_itch_tree, int offset) { - char *stock_p = tvb_get_ephemeral_string(tvb, offset, 6); + char *stock_p = tvb_get_string(wmem_packet_scope(), tvb, offset, 6); proto_tree_add_item(nasdaq_itch_tree, hf_nasdaq_itch_stock, tvb, offset, 6, ENC_ASCII|ENC_NA); col_append_fstr(pinfo->cinfo, COL_INFO, "<%s> ", stock_p); |