diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-01-18 19:27:49 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-01-18 19:27:49 +0000 |
commit | 73b6d7e8f520ce80f63fc2a60305419613bdd9c9 (patch) | |
tree | efd57b1345d0c95d43c936e2253c25982356530f /sys/isofs | |
parent | 6c5bacf2104bed56533bb54de43692a3e7fce585 (diff) |
Fix math in udf_bmap_internal() on big-endian architectures
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/udf/udf_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c index c5cc2c73ce3..1aefcb5efd1 100644 --- a/sys/isofs/udf/udf_vnops.c +++ b/sys/isofs/udf/udf_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_vnops.c,v 1.10 2006/01/14 19:04:17 miod Exp $ */ +/* $OpenBSD: udf_vnops.c,v 1.11 2006/01/18 19:27:48 pedro Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> @@ -1322,7 +1322,7 @@ udf_bmap_internal(struct udf_node *node, off_t offset, daddr_t *sector, } while(offset >= icblen); lsector = (offset >> udfmp->bshift) + - ((struct short_ad *)(icb))->pos; + letoh32(((struct short_ad *)(icb))->pos); *max_size = GETICBLEN(short_ad, icb); |