summaryrefslogtreecommitdiff
path: root/sys/ntfs/ntfs_subr.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2013-12-02 16:23:17 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2013-12-02 16:23:17 +0000
commitc59e35abc55371113c9c25f742332f548e7d674b (patch)
tree27a567c93147c9181b5e5089c8c26f37e123ef20 /sys/ntfs/ntfs_subr.c
parentcd0d00732a6c9a484872920b4ef65e6a770c76c4 (diff)
Stop trying to put an off_t into an int, which results in a 2GB limit.
From NetBSD. ok krw@
Diffstat (limited to 'sys/ntfs/ntfs_subr.c')
-rw-r--r--sys/ntfs/ntfs_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ntfs/ntfs_subr.c b/sys/ntfs/ntfs_subr.c
index 178b971b7b8..1423cbe8409 100644
--- a/sys/ntfs/ntfs_subr.c
+++ b/sys/ntfs/ntfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_subr.c,v 1.35 2013/12/02 16:19:08 jsing Exp $ */
+/* $OpenBSD: ntfs_subr.c,v 1.36 2013/12/02 16:23:16 jsing Exp $ */
/* $NetBSD: ntfs_subr.c,v 1.4 2003/04/10 21:37:32 jdolecek Exp $ */
/*-
@@ -1389,7 +1389,7 @@ ntfs_writentvattr_plain(struct ntfsmount *ntmp, struct ntnode *ip,
struct uio *uio)
{
int error = 0;
- int off;
+ off_t off;
int cnt;
cn_t ccn, ccl, cn, left, cl;
caddr_t data = rdata;
@@ -1491,7 +1491,7 @@ ntfs_readntvattr_plain(struct ntfsmount *ntmp, struct ntnode *ip,
struct uio *uio)
{
int error = 0;
- int off;
+ off_t off;
*initp = 0;
if (vap->va_flag & NTFS_AF_INRUN) {