diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-12 17:10:52 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-12 17:10:52 +0000 |
commit | 964ff9c3a0da334054f587a2ad76fa1925fb06e6 (patch) | |
tree | 26303875a4b0af44555e074c94ab535def89f222 | |
parent | 99ad255790337a3e9627686cc2544f819d6b3689 (diff) |
fix overflow reported by damien@ibs.com.au: off_t totalsize, ok niels,aaron
-rw-r--r-- | usr.bin/ssh/scp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index 9b0dd9587bb..b6fbc49d5ac 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -42,11 +42,11 @@ and ssh has the necessary privileges.) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scp.c,v 1.14 1999/10/27 02:14:38 aaron Exp $ + * $Id: scp.c,v 1.15 1999/11/12 17:10:51 markus Exp $ */ #include "includes.h" -RCSID("$Id: scp.c,v 1.14 1999/10/27 02:14:38 aaron Exp $"); +RCSID("$Id: scp.c,v 1.15 1999/11/12 17:10:51 markus Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -70,7 +70,7 @@ static struct timeval start; volatile unsigned long statbytes; /* Total size of current file. */ -unsigned long totalbytes = 0; +off_t totalbytes = 0; /* Name of current file being transferred. */ char *curfile; @@ -976,7 +976,7 @@ run_err(const char *fmt, ...) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scp.c,v 1.14 1999/10/27 02:14:38 aaron Exp $ + * $Id: scp.c,v 1.15 1999/11/12 17:10:51 markus Exp $ */ char * |