aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gopher.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-gopher.c')
-rw-r--r--epan/dissectors/packet-gopher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gopher.c b/epan/dissectors/packet-gopher.c
index d6001bbe9c..69e00c5672 100644
--- a/epan/dissectors/packet-gopher.c
+++ b/epan/dissectors/packet-gopher.c
@@ -98,7 +98,7 @@ static gboolean
find_dir_tokens(tvbuff_t *tvb, gint name_start, gint *sel_start, gint *host_start, gint *port_start, gint *line_len, gint *next_offset) {
gint remain;
- if (tvb_length_remaining(tvb, name_start) < MIN_DIR_LINE_LEN)
+ if (tvb_captured_length_remaining(tvb, name_start) < MIN_DIR_LINE_LEN)
return FALSE;
if (! (sel_start && host_start && port_start && line_len && next_offset) )
@@ -199,7 +199,7 @@ dissect_gopher(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _
}
/* Return the amount of data this dissector was able to dissect */
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
/* Preference callbacks */