diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-19 15:49:09 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-19 15:49:09 +0000 |
commit | a6415ece0ad102d30ac5dce59b127bcf1bd6d3f1 (patch) | |
tree | 0eff98882fe8c8a9db6f064b87330b8060fe37b2 /epan/dissectors/packet-eap.c | |
parent | b7ab4db2108fda5a1370b807d1b03ad93b1ca8f8 (diff) |
Rename a couple of to_str functions to have ep_ in the name. This makes it
obvious that the returned string is ephemeral, and opens up the original names
in the API for versions that take a wmem pool (and thus can work in any scope).
svn path=/trunk/; revision=54249
Diffstat (limited to 'epan/dissectors/packet-eap.c')
-rw-r--r-- | epan/dissectors/packet-eap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-eap.c b/epan/dissectors/packet-eap.c index 58b5966d2d..5214ba7dd7 100644 --- a/epan/dissectors/packet-eap.c +++ b/epan/dissectors/packet-eap.c @@ -498,7 +498,7 @@ dissect_eap_mschapv2(proto_tree *eap_tree, tvbuff_t *tvb, packet_info *pinfo, in } else { proto_tree_add_text(eap_tree, tvb, offset, value_size, "EAP-MS-CHAP-v2 Response (Unknown Length): %s", - tvb_bytes_to_str(tvb, offset, value_size)); + tvb_bytes_to_ep_str(tvb, offset, value_size)); offset += value_size; left -= value_size; } @@ -522,7 +522,7 @@ dissect_eap_mschapv2(proto_tree *eap_tree, tvbuff_t *tvb, packet_info *pinfo, in proto_tree_add_text(eap_tree, tvb, offset, left, "EAP-MS-CHAP-v2 Data (%d byte%s): \"%s\"", left, plurality(left, "", "s"), - tvb_bytes_to_str(tvb, offset, left)); + tvb_bytes_to_ep_str(tvb, offset, left)); break; } } @@ -1132,7 +1132,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) proto_tree_add_text(eap_tree, tvb, offset, count, "EAP-LEAP Data (%d byte%s): \"%s\"", count, plurality(count, "", "s"), - tvb_bytes_to_str(tvb, offset, count)); + tvb_bytes_to_ep_str(tvb, offset, count)); break; } } @@ -1193,7 +1193,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) proto_tree_add_text(eap_tree, tvb, offset, size, "EAP Data (%d byte%s): \"%s\"", size, plurality(size, "", "s"), - tvb_bytes_to_str(tvb, offset, size)); + tvb_bytes_to_ep_str(tvb, offset, size)); } break; /********************************************************************* |