summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/print-ldp.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-12-28 05:58:31 +0000
committerkevlo <kevlo@FreeBSD.org>2011-12-28 05:58:31 +0000
commit8ccf51483cf161d511c2f467a442e19ece12d97b (patch)
tree83c4baca6473b88f9b093c452bc921f30b26fe0f /contrib/tcpdump/print-ldp.c
parentef46f37483114f91ba855f1036a2f9078e9dea81 (diff)
downloadFreeBSD-src-8ccf51483cf161d511c2f467a442e19ece12d97b.zip
FreeBSD-src-8ccf51483cf161d511c2f467a442e19ece12d97b.tar.gz
Fix incorrect uses of sizeof().
The details of the fix can be found in the tcpdump git repository: commit 684955d58611ee94eccdc34e82b32e676337188c
Diffstat (limited to 'contrib/tcpdump/print-ldp.c')
-rw-r--r--contrib/tcpdump/print-ldp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tcpdump/print-ldp.c b/contrib/tcpdump/print-ldp.c
index de3b34e..1243104 100644
--- a/contrib/tcpdump/print-ldp.c
+++ b/contrib/tcpdump/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;
OpenPOWER on IntegriCloud