aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-socks.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-socks.c')
-rw-r--r--epan/dissectors/packet-socks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-socks.c b/epan/dissectors/packet-socks.c
index 79beed2974..5ac8fa928e 100644
--- a/epan/dissectors/packet-socks.c
+++ b/epan/dissectors/packet-socks.c
@@ -546,7 +546,7 @@ display_socks_v4(tvbuff_t *tvb, int offset, packet_info *pinfo,
if ( tvb_offset_exists(tvb, offset)) {
proto_tree_add_text( tree, tvb, offset,
tvb_strsize(tvb, offset),
- "User Name: %s", tvb_get_ptr(tvb, offset, -1));
+ "User Name: %s", tvb_get_ephemeral_string(tvb, offset, -1));
}
}
}