]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix an xfs_copy integer wrap when dealing with large filesystems. From Mark Portney.
authorNathan Scott <nathans@sgi.com>
Sat, 17 Jul 2004 00:52:48 +0000 (00:52 +0000)
committerNathan Scott <nathans@sgi.com>
Sat, 17 Jul 2004 00:52:48 +0000 (00:52 +0000)
copy/xfs_copy.c

index 47ca3d609141fa13a005abbc45f81ac274340bab..6551bcf8817193d6f7687346fdda50646d0fae2b 100644 (file)
@@ -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;