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 | 8cca1afc38ca7896c6d1ea46a42b0e2f0d891302 (patch) | |
tree | 22cefaaad5b49eb9763c92892e9bd2f09b3c11e1 /usr.bin/fetch/fetch.c | |
parent | 7e5c9a1a2fb5740830ef51f419e27d5f191c92c7 (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 00bcc7659ba6..e8c9536a5ce3 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -565,7 +565,8 @@ fetch(char *URL, const char *path) /* suck in the data */ signal(SIGINFO, sig_handler); while (!sigint) { - 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; |