I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
17 lines
626 B
Diff
17 lines
626 B
Diff
Index: usr.bin/fetch/fetch.c
|
|
===================================================================
|
|
RCS file: /home/ncvs/src/usr.bin/fetch/fetch.c,v
|
|
retrieving revision 1.74
|
|
diff -u -p -r1.74 fetch.c
|
|
--- usr.bin/fetch/fetch.c 21 Sep 2004 18:34:19 -0000 1.74
|
|
+++ usr.bin/fetch/fetch.c 14 Nov 2004 14:03:12 -0000
|
|
@@ -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;
|