diff options
author | Sascha Wildner <swildner@sourceforge.net> | 2011-12-07 10:42:12 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-12-07 10:42:12 -0800 |
commit | 684955d58611ee94eccdc34e82b32e676337188c (patch) | |
tree | c9880eca11f989098ee2df7b9896dac1961b874a /print-ldp.c | |
parent | 5d52dbf4c7340b9e79f280b2b444c9b652a3458f (diff) | |
download | tcpdump-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-ldp.c')
-rw-r--r-- | print-ldp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-ldp.c b/print-ldp.c index de3b34e5..12431048 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -609,7 +609,7 @@ ldp_msg_print(register const u_char *pptr) { } /* do we want to see an additionally hexdump ? */ if (vflag > 1 || hexdump==TRUE) - print_unknown_data(tptr+sizeof(sizeof(struct ldp_msg_header)),"\n\t ", + print_unknown_data(tptr+sizeof(struct ldp_msg_header),"\n\t ", msg_len); tptr += msg_len+4; |