From 157dbabffd25f48ba0aea912640375423bb7bf26 Mon Sep 17 00:00:00 2001 From: maxim Date: Fri, 6 Oct 2006 08:30:33 +0000 Subject: 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 --- bin/cp/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/cp') 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; -- cgit v1.1