summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpedro <pedro@openbsd.org>2005-11-09 02:38:38 +0000
committerpedro <pedro@openbsd.org>2005-11-09 02:38:38 +0000
commitb8257d32c2047a964e82761292ecadf053fca4fc (patch)
treeac6a7da1f57eae47667e39952714dd92f3cae8b3
parent- Don't getnanotime() for read-only mountpoints or unmodified inodes, (diff)
downloadwireguard-openbsd-b8257d32c2047a964e82761292ecadf053fca4fc.tar.xz
wireguard-openbsd-b8257d32c2047a964e82761292ecadf053fca4fc.zip
Add missing cast when reading in the file size, fixes PR 4480, okay krw@
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 13097ffcd38..4a40ecfa85c 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vfsops.c,v 1.35 2003/08/14 07:46:39 mickey Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.36 2005/11/09 02:38:38 pedro Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
/*-
@@ -855,7 +855,7 @@ retry:
}
ip->iso_extent = isonum_733(isodir->extent);
- ip->i_size = isonum_733(isodir->size);
+ ip->i_size = (u_int32_t) isonum_733(isodir->size);
ip->iso_start = isonum_711(isodir->ext_attr_length) + ip->iso_extent;
/*