diff options
author | maxim <maxim@FreeBSD.org> | 2006-10-06 08:30:33 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2006-10-06 08:30:33 +0000 |
commit | 157dbabffd25f48ba0aea912640375423bb7bf26 (patch) | |
tree | ddde230f619e15af8e9dea50ca51f62a44c5c9f3 /bin/cp | |
parent | f53bc81fe169bef4ef8c092ae4fb83ecbf273534 (diff) | |
download | FreeBSD-src-157dbabffd25f48ba0aea912640375423bb7bf26.zip FreeBSD-src-157dbabffd25f48ba0aea912640375423bb7bf26.tar.gz |
o Hold copied bytes counter in off_t. This prevents statistics
displayed by SIGINFO handler from overflow.
PR: bin/104039
Submitted by: Geoffrey Giesemann
MFC after: 2 weeks
Diffstat (limited to 'bin/cp')
-rw-r--r-- | bin/cp/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c index d9e40b2..64ebc52 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -64,7 +64,7 @@ copy_file(const FTSENT *entp, int dne) int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0; ssize_t wcount; size_t wresid; - size_t wtotal; + off_t wtotal; char *bufp; #ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED char *p; |