aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ncp2222.inc
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-12-19 15:49:09 +0000
committerEvan Huus <eapache@gmail.com>2013-12-19 15:49:09 +0000
commita6415ece0ad102d30ac5dce59b127bcf1bd6d3f1 (patch)
tree0eff98882fe8c8a9db6f064b87330b8060fe37b2 /epan/dissectors/packet-ncp2222.inc
parentb7ab4db2108fda5a1370b807d1b03ad93b1ca8f8 (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-ncp2222.inc')
-rw-r--r--epan/dissectors/packet-ncp2222.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ncp2222.inc b/epan/dissectors/packet-ncp2222.inc
index 483eec5044..ee5ae7986e 100644
--- a/epan/dissectors/packet-ncp2222.inc
+++ b/epan/dissectors/packet-ncp2222.inc
@@ -2784,7 +2784,7 @@ build_expert_data(proto_tree *ncp_tree, const char *hf_name, char *buffer,
}
case 21:
case 22: /* Bytes */
- g_snprintf(buffer, (gulong) buffer_size, "%s", bytes_to_str(get_finfo_value_string(PTREE_FINFO(tree_pointer)), get_finfo_length(PTREE_FINFO(tree_pointer))));
+ g_snprintf(buffer, (gulong) buffer_size, "%s", bytes_to_ep_str(get_finfo_value_string(PTREE_FINFO(tree_pointer)), get_finfo_length(PTREE_FINFO(tree_pointer))));
break;
default: /* Dont currently handle. Only need string, integers, and bytes */
g_snprintf(buffer, (gulong) buffer_size, "Unsupported Expert Type");
@@ -7725,7 +7725,7 @@ dissect_ncp_request(tvbuff_t *tvb, packet_info *pinfo,
if (info_type != 0) { /* Is this a string or not? */
if (info_type == 1) { /* Is this bytes? */
- byte_string = bytes_to_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
+ byte_string = bytes_to_ep_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
col_append_fstr(pinfo->cinfo, COL_INFO,
(const gchar*) ncp_rec->req_info_str->first_string,
byte_string);
@@ -7762,7 +7762,7 @@ dissect_ncp_request(tvbuff_t *tvb, packet_info *pinfo,
if (info_type != 0) { /* Is this a string or not? */
if (info_type == 1)
{ /* Is this bytes? */
- byte_string = bytes_to_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
+ byte_string = bytes_to_ep_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
col_append_fstr(pinfo->cinfo, COL_INFO,
(const gchar*) ncp_rec->req_info_str->repeat_string,
byte_string);