aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorMartin Cracauer <cracauer@FreeBSD.org>1997-09-28 11:25:59 +0000
committerMartin Cracauer <cracauer@FreeBSD.org>1997-09-28 11:25:59 +0000
commit3e27c094e49eef5b63104b1bd9d006c48f37606e (patch)
tree10fcf4f52a62b9dd426b49f17b7dc18e7978e987 /usr.bin/fetch
parentfee9ad97d658177abacd49cbcad27470ed7f6c81 (diff)
downloadsrc-3e27c094e49eef5b63104b1bd9d006c48f37606e.tar.gz
src-3e27c094e49eef5b63104b1bd9d006c48f37606e.zip
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
Notes
Notes: svn path=/head/; revision=29934
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index fcb221c250a8..6eeb010ca9aa 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++) {