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 | 02bbf3743bb6bab2aa930ccbed9048456434bb62 (patch) | |
tree | 828cc047222e982a44f4f102e8412d42f53f988e /usr.bin/fetch | |
parent | 4526ebb48c4dd73b1c8032fa41d96324392aad6d (diff) | |
download | src-releng/5.0.tar.gz src-releng/5.0.zip |
FreeBSD-SA-04:16.fetch:releng/5.0
MFC revision 1.75 of src/usr.bin/fetch/fetch.c
Bump newvers.sh and document in UPDATING.
Approved by: so
Notes
Notes:
svn path=/releng/5.0/; revision=137856
Diffstat (limited to 'usr.bin/fetch')
-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 63cd73308c50..fadea0ff25c3 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -534,7 +534,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; |