From: Nathan Scott Date: Sat, 17 Jul 2004 00:52:48 +0000 (+0000) Subject: Fix an xfs_copy integer wrap when dealing with large filesystems. From Mark Portney. X-Git-Tag: v2.7.0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b9a02a6e015f3e0586a51d21126c123c9a216d4;p=thirdparty%2Fxfsprogs-dev.git Fix an xfs_copy integer wrap when dealing with large filesystems. From Mark Portney. --- diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c index 47ca3d609..6551bcf88 100644 --- a/copy/xfs_copy.c +++ b/copy/xfs_copy.c @@ -496,7 +496,8 @@ main(int argc, char **argv) int open_flags; xfs_off_t pos, end_pos; size_t length; - int c, size, sizeb, first_residue, tmp_residue; + int c, first_residue, tmp_residue; + __uint64_t size, sizeb; __uint64_t numblocks = 0; int wblocks = 0; int num_threads = 0;