]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: simplify integer overflow checking
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2019 19:35:44 +0000 (12:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2019 19:41:51 +0000 (12:41 -0700)
commitbb23a7563f9abcfc68c2caa443b0cbb6d6206fd1
treefceb2ddb2bc0b5d866808a71157188d850aa127e
parent1c8050cc4d862a905ba4e91ac6df2f3c1e501649
cp: simplify integer overflow checking

* src/copy.c (sparse_copy): Use INT_ADD_WRAPV instead
of doing overflow checking by hand.
src/copy.c