diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2004-11-18 12:02:29 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2004-11-18 12:02:29 +0000 |
| commit | d6aeaf1fb091b6dd9b679c304676ae6e0dcb057e (patch) | |
| tree | 528184407692bcfce3e2ba4bc85a4e202186b12c /usr.bin | |
| parent | 59da0bf98d6802fb192fdca4282e4a28d5bfb825 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -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 21890fda407dd..9b61041a5d19c 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -584,7 +584,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; |
