aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-exec.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-09-22 20:04:35 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-09-22 20:04:35 +0000
commit102c452bcb8203b6cf0b0898f7badf3cb044b4d8 (patch)
tree05f19cbc24070c0074b4ab80a45d96f89e4dd914 /epan/dissectors/packet-exec.c
parent1210a335abc6bf74068d3020252f25f714ff5ee2 (diff)
More emem -> wmem conversion:
- tvb_get_g_stringz()/tvb_get_ephemeral_stringz()/tvb_get_seasonal_stringz() -> tvb_get_stringz() - tvb_get_g_stringz_enc()/tvb_get_ephemeral_stringz_enc() -> tvb_get_stringz_enc() - tvb_get_ephemeral_unicode_stringz() -> tvb_get_unicode_stringz() - tvb_bcd_dig_to_ep_str() -> tvb_bcd_dig_to_wmem_packet_str() - update docs accordingly svn path=/trunk/; revision=52180
Diffstat (limited to 'epan/dissectors/packet-exec.c')
-rw-r--r--epan/dissectors/packet-exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-exec.c b/epan/dissectors/packet-exec.c
index 3c5e18c814..b86d50da63 100644
--- a/epan/dissectors/packet-exec.c
+++ b/epan/dissectors/packet-exec.c
@@ -226,7 +226,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if(hash_info->state == WAIT_FOR_STDERR_PORT
&& tvb_length_remaining(tvb, offset)){
- field_stringz = tvb_get_ephemeral_stringz(tvb, offset, &length);
+ field_stringz = tvb_get_stringz(wmem_packet_scope(), tvb, offset, &length);
/* Check if this looks like the stderr_port field.
* It is optional, so it may only be 1 character long
@@ -249,7 +249,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if(hash_info->state == WAIT_FOR_USERNAME
&& tvb_length_remaining(tvb, offset)){
- field_stringz = tvb_get_ephemeral_stringz(tvb, offset, &length);
+ field_stringz = tvb_get_stringz(wmem_packet_scope(), tvb, offset, &length);
/* Check if this looks like the username field */
if(length != 1 && length <= EXEC_USERNAME_LEN
@@ -277,7 +277,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if(hash_info->state == WAIT_FOR_PASSWORD
&& tvb_length_remaining(tvb, offset)){
- field_stringz = tvb_get_ephemeral_stringz(tvb, offset, &length);
+ field_stringz = tvb_get_stringz(wmem_packet_scope(), tvb, offset, &length);
/* Check if this looks like the password field */
if(length != 1 && length <= EXEC_PASSWORD_LEN
@@ -300,7 +300,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if(hash_info->state == WAIT_FOR_COMMAND
&& tvb_length_remaining(tvb, offset)){
- field_stringz = tvb_get_ephemeral_stringz(tvb, offset, &length);
+ field_stringz = tvb_get_stringz(wmem_packet_scope(), tvb, offset, &length);
/* Check if this looks like the command field */
if(length != 1 && length <= EXEC_COMMAND_LEN