summaryrefslogtreecommitdiff
path: root/print-lmp.c
diff options
context:
space:
mode:
authorSascha Wildner <swildner@sourceforge.net>2011-12-07 10:42:12 -0800
committerGuy Harris <guy@alum.mit.edu>2011-12-07 10:42:12 -0800
commit684955d58611ee94eccdc34e82b32e676337188c (patch)
treec9880eca11f989098ee2df7b9896dac1961b874a /print-lmp.c
parent5d52dbf4c7340b9e79f280b2b444c9b652a3458f (diff)
downloadtcpdump-684955d58611ee94eccdc34e82b32e676337188c.tar.gz
Fix a bunch of "sizeof(sizeof(XXX))".
In some places, there was one too many levels of sizeof() - sizeof(sizeof(XXX)) is sizeof(size_t), but we wanted the size of type XXX. Reviewed-By: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'print-lmp.c')
-rw-r--r--print-lmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-lmp.c b/print-lmp.c
index 556db173..e09b89fc 100644
--- a/print-lmp.c
+++ b/print-lmp.c
@@ -871,7 +871,7 @@ lmp_print(register const u_char *pptr, register u_int len) {
}
/* do we want to see an additionally hexdump ? */
if (vflag > 1 || hexdump==TRUE)
- print_unknown_data(tptr+sizeof(sizeof(struct lmp_object_header)),"\n\t ",
+ print_unknown_data(tptr+sizeof(struct lmp_object_header),"\n\t ",
lmp_obj_len-sizeof(struct lmp_object_header));
tptr+=lmp_obj_len;