diff options
author | cracauer <cracauer@FreeBSD.org> | 1997-09-28 11:25:59 +0000 |
---|---|---|
committer | cracauer <cracauer@FreeBSD.org> | 1997-09-28 11:25:59 +0000 |
commit | ce03b01dcee6a5231dcfe64b4fbeff14922276f5 (patch) | |
tree | ecb4e1c7f950843423b3e05686bed3340835362b /usr.bin/fetch/http.c | |
parent | 043e6810da2e67f351c2efe635516828d71fa2a4 (diff) | |
download | FreeBSD-src-ce03b01dcee6a5231dcfe64b4fbeff14922276f5.zip FreeBSD-src-ce03b01dcee6a5231dcfe64b4fbeff14922276f5.tar.gz |
fetch(3) doesn't get asctime(3) format, wrong length assumed
PR: bin/4625
Submitted by: "Timo J. Rinne" <tri@pooh.tky.hut.fi>
Obtained from:bin/4625
Diffstat (limited to 'usr.bin/fetch/http.c')
-rw-r--r-- | usr.bin/fetch/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c index fcb221c..6eeb010 100644 --- a/usr.bin/fetch/http.c +++ b/usr.bin/fetch/http.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: http.c,v 1.10 1997/07/26 20:18:43 wollman Exp $ + * $Id: http.c,v 1.11 1997/08/05 20:18:38 ache Exp $ */ #include <sys/types.h> @@ -1297,7 +1297,7 @@ parse_http_date(char *string) } else if (string[3] == ' ') { /* Mon Jan 27 14:25:20 1997 */ - if (strlen(string) < 25) + if (strlen(string) < 24) return -1; string += 4; for (i = 0; i < 12; i++) { |