summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-01-19 01:05:33 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-01-19 01:05:33 +0000
commit96025bac5f7e8aca336d00225192c709a74d5372 (patch)
tree62244e8deebd1f6839e2960c017cb3e49c7ee6ae /sys
parent461ced1b8a0b6091149bd57d78f1f48224386112 (diff)
GETICBLEN() needs to swap the ICB length on big-endian architectures
Diffstat (limited to 'sys')
-rw-r--r--sys/isofs/udf/ecma167-udf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/udf/ecma167-udf.h b/sys/isofs/udf/ecma167-udf.h
index a51e83223c2..720e69ec540 100644
--- a/sys/isofs/udf/ecma167-udf.h
+++ b/sys/isofs/udf/ecma167-udf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecma167-udf.h,v 1.2 2005/04/14 12:35:29 pedro Exp $ */
+/* $OpenBSD: ecma167-udf.h,v 1.3 2006/01/19 01:05:32 pedro Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -372,4 +372,4 @@ union dscrptr {
#define GETICB(ad_type, fentry, offset) \
(struct ad_type *)&fentry->data[offset]
-#define GETICBLEN(ad_type, icb) ((struct ad_type *)(icb))->len
+#define GETICBLEN(ad_type, icb) letoh32(((struct ad_type *)(icb))->len)