diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-13 08:58:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-13 08:58:17 +0000 |
commit | 9985115b8baf5bb77f376647f505a7892ba61028 (patch) | |
tree | f490426cc9cf304561779db94f5dbc3eef6c5395 /packet-pop.c | |
parent | ead1cadaf3100560e373cc7395d09744d3288ef4 (diff) | |
download | wireshark-9985115b8baf5bb77f376647f505a7892ba61028.tar.gz wireshark-9985115b8baf5bb77f376647f505a7892ba61028.tar.bz2 wireshark-9985115b8baf5bb77f376647f505a7892ba61028.zip |
Use "tvb_offset_exists()" rather than "tvb_length_remaining()" to check
whether there's any data left in the tvbuff starting at a specified
offset.
svn path=/trunk/; revision=2636
Diffstat (limited to 'packet-pop.c')
-rw-r--r-- | packet-pop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-pop.c b/packet-pop.c index 74bcc1e5ce..c41ccfcd1a 100644 --- a/packet-pop.c +++ b/packet-pop.c @@ -2,7 +2,7 @@ * Routines for pop packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-pop.c,v 1.18 2000/11/10 08:02:34 guy Exp $ + * $Id: packet-pop.c,v 1.19 2000/11/13 08:58:07 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -166,7 +166,7 @@ dissect_pop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * Show the rest of the request or response as text, * a line at a time. */ - while (tvb_length_remaining(tvb, offset)) { + while (tvb_offset_exists(tvb, offset)) { /* * Find the end of the line. */ |