diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-08-22 06:38:32 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-08-22 06:38:32 +0000 |
commit | 7c0421b146adfc9d48822b4b4a43d0099a55915b (patch) | |
tree | f329f43aa9ce588389185b8831d703d98104d108 /ptvcursor.c | |
parent | 064936053c5c2db7dd2cf4eec0f744a3dcbaca87 (diff) |
Change FT_NSTRING_UINT8 to FT_UINT_STRING. The length parameter passed
to proto_tree_add_item() will indicate if the length of the string is
indicated by an UINT8, UINT16, UINT24, or UINT32.
Change NCP dissector-maker to produce FT_UINT_STRING.
Fix off-by-one in dissection of some NCP reply packets.
svn path=/trunk/; revision=2334
Diffstat (limited to 'ptvcursor.c')
-rw-r--r-- | ptvcursor.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ptvcursor.c b/ptvcursor.c index 252a54f16e..ba84b9adcc 100644 --- a/ptvcursor.c +++ b/ptvcursor.c @@ -3,7 +3,7 @@ * Proto Tree TVBuff cursor * Gilbert Ramirez <gram@xiexie.org> * - * $Id: ptvcursor.c,v 1.2 2000/08/11 13:34:32 deniel Exp $ + * $Id: ptvcursor.c,v 1.3 2000/08/22 06:38:21 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -59,12 +59,7 @@ ptvcursor_add(ptvcursor_t *ptvc, int hf, gint length, gboolean endianness) item = proto_tree_add_item(ptvc->tree, hf, ptvc->tvb, ptvc->offset, length, endianness); - if (length == PTVC_VARIABLE_LENGTH) { - ptvc->offset += proto_item_get_len(item); - } - else { - ptvc->offset += length; - } + ptvc->offset += proto_item_get_len(item); return item; } |