From 3e27c094e49eef5b63104b1bd9d006c48f37606e Mon Sep 17 00:00:00 2001 From: Martin Cracauer Date: Sun, 28 Sep 1997 11:25:59 +0000 Subject: fetch(3) doesn't get asctime(3) format, wrong length assumed PR: bin/4625 Submitted by: "Timo J. Rinne" Obtained from:bin/4625 --- usr.bin/fetch/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c index fcb221c250a8f..6eeb010ca9aad 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 @@ -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++) { -- cgit v1.3