summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-sametime.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-sametime.c')
-rw-r--r--epan/dissectors/packet-sametime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sametime.c b/epan/dissectors/packet-sametime.c
index 1bc9eee101..06a219f9d4 100644
--- a/epan/dissectors/packet-sametime.c
+++ b/epan/dissectors/packet-sametime.c
@@ -235,7 +235,7 @@ add_text_item(tvbuff_t *tvb, proto_tree *tree, int offset, int hf)
proto_tree_add_item(tree, hf_sametime_field_length, tvb, offset, 2, ENC_BIG_ENDIAN);
/* add string */
- proto_tree_add_string(tree, hf, tvb, offset + 2, length, tvb_get_ephemeral_string(tvb, offset + 2, length));
+ proto_tree_add_string(tree, hf, tvb, offset + 2, length, tvb_get_string(wmem_packet_scope(), tvb, offset + 2, length));
}
return 2 + length;