diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2004-11-18 12:06:51 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2004-11-18 12:06:51 +0000 |
commit | d8ba0a6a45a03b01c485b3aa834a3ef883613b2e (patch) | |
tree | 8416fec65a8a90c1b6526e85a5cdbcff2ce44a55 /usr.bin/fetch/fetch.c | |
parent | 73dc22f45454c7a981354aad6be7edd524eea2cc (diff) |
Notes
Diffstat (limited to 'usr.bin/fetch/fetch.c')
-rw-r--r-- | usr.bin/fetch/fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index 34ee02e68f3a6..7dfdbaf26e8cd 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -503,7 +503,8 @@ fetch(char *URL, const char *path) /* suck in the data */ signal(SIGINFO, sig_handler); while (!sigint && !sigalrm) { - if (us.size != -1 && us.size - count < B_size) + if (us.size != -1 && us.size - count < B_size && + us.size - count >= 0) size = us.size - count; else size = B_size; |