aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-03-07 19:33:24 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-03-07 19:33:24 +0000
commit712548da3ed447e8c6fc34b4f42861cee54f0610 (patch)
tree153a3511c132df4bab83f4d404c308dc64f19c15 /epan
parentdb4e6ae2207ce1dcabe31480f02748c71e0d094b (diff)
In the code that handles finding a field after a user clicks on
a byte in the hex dump, 1. Fix an off-by-one error when finding the field. This only showed up if the selected byte had no field of its own and was only designated as part of the parent protocol (like the 00-padding at the beginning of TCP options). 2. Fix an off-by-one error when clicking on a character in the second half of the "text dump" portion of the hex dump. I forgot about the extra space between the first 8 characters and the second 8 characters. svn path=/trunk/; revision=3117
Diffstat (limited to 'epan')
-rw-r--r--epan/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 82afb5098c..085821bbc0 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -1,7 +1,7 @@
/* proto.c
* Routines for protocol tree
*
- * $Id: proto.c,v 1.12 2001/03/02 23:10:11 gram Exp $
+ * $Id: proto.c,v 1.13 2001/03/07 19:33:22 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -2603,7 +2603,7 @@ check_for_offset(GNode *node, gpointer data)
/* !fi == the top most container node which holds nothing */
if (fi && fi->visible) {
if (offsearch->offset >= fi->start &&
- offsearch->offset <= (fi->start + fi->length)) {
+ offsearch->offset < (fi->start + fi->length)) {
offsearch->finfo = fi;
return FALSE; /* keep traversing */