aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimax/msg_ulmap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-05-27 18:33:13 +0000
committerGuy Harris <guy@alum.mit.edu>2007-05-27 18:33:13 +0000
commit01844e151ad3b5882ef36893aac6339d4ccfd0a7 (patch)
treede9cddb64f954a8a5c63aa0fe2c5e32bfac6ed06 /plugins/wimax/msg_ulmap.c
parentd99b6c0a8b53bcfd1b857e259d4cb1632302e408 (diff)
Use tvb_reported_length() to get the amount of data we should look at;
the number of bytes in the packet or subset of the packet is the reported length, tvb_length() just gives you the amount of that data that was actually captured. Include <glib.h>, not <gmodule.h>, even in plugins. Fix the version numbers in the rc files. svn path=/trunk/; revision=21960
Diffstat (limited to 'plugins/wimax/msg_ulmap.c')
-rw-r--r--plugins/wimax/msg_ulmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wimax/msg_ulmap.c b/plugins/wimax/msg_ulmap.c
index aa112a2708..3289811c23 100644
--- a/plugins/wimax/msg_ulmap.c
+++ b/plugins/wimax/msg_ulmap.c
@@ -34,7 +34,7 @@
#include "moduleinfo.h"
-#include <gmodule.h>
+#include <glib.h>
#include <epan/packet.h>
#include <epan/prefs.h>
#include "crc.h"
@@ -2269,7 +2269,7 @@ void dissect_mac_mgmt_msg_ulmap_decoder(tvbuff_t *tvb, packet_info *pinfo, proto
guint tvb_len;
const guint8 *bufptr;
- tvb_len = tvb_length(tvb);
+ tvb_len = tvb_reported_length(tvb);
bufptr = tvb_get_ptr(tvb, offset, tvb_len);
UNREFERENCED_PARAMETER(pinfo);