From c59e35abc55371113c9c25f742332f548e7d674b Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Mon, 2 Dec 2013 16:23:17 +0000 Subject: Stop trying to put an off_t into an int, which results in a 2GB limit. From NetBSD. ok krw@ --- sys/ntfs/ntfs_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/ntfs/ntfs_subr.c') 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) { -- cgit v1.2.3