aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gift.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-gift.c')
-rw-r--r--epan/dissectors/packet-gift.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-gift.c b/epan/dissectors/packet-gift.c
index 5ac2088c37..a6af7a3b9a 100644
--- a/epan/dissectors/packet-gift.c
+++ b/epan/dissectors/packet-gift.c
@@ -72,7 +72,7 @@ dissect_gift(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
/* set "Info" column text */
col_add_fstr(pinfo->cinfo, COL_INFO, "%s: %s",
is_request ? "Request" : "Response",
- format_text(line, linelen));
+ format_text_wmem(wmem_packet_scope(), line, linelen));
/* if tree != NULL, build protocol tree */
if (tree) {
@@ -93,10 +93,10 @@ dissect_gift(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
if (tokenlen != 0) {
if (is_request) {
proto_tree_add_string(cmd_tree, hf_gift_request_cmd, tvb, offset,
- tokenlen, format_text(line, tokenlen));
+ tokenlen, format_text_wmem(wmem_packet_scope(), line, tokenlen));
} else {
proto_tree_add_string(cmd_tree, hf_gift_response_cmd, tvb, offset,
- tokenlen, format_text(line, tokenlen));
+ tokenlen, format_text_wmem(wmem_packet_scope(), line, tokenlen));
}
offset += (gint) (next_token - line);
linelen -= (int) (next_token - line);
@@ -106,10 +106,10 @@ dissect_gift(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
if (linelen != 0) {
if (is_request) {
proto_tree_add_string(cmd_tree, hf_gift_request_arg, tvb, offset,
- linelen, format_text(line, linelen));
+ linelen, format_text_wmem(wmem_packet_scope(), line, linelen));
} else {
proto_tree_add_string(cmd_tree, hf_gift_response_arg, tvb, offset,
- linelen, format_text(line, linelen));
+ linelen, format_text_wmem(wmem_packet_scope(), line, linelen));
}
}
}