summaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorMartin Cracauer <cracauer@FreeBSD.org>1997-09-30 07:41:36 +0000
committerMartin Cracauer <cracauer@FreeBSD.org>1997-09-30 07:41:36 +0000
commit3559ae16204a547a375c4f74d566ad6d2ad65be6 (patch)
tree56b001efce7d2531483ef0022f6b2df4b08f7202 /usr.bin/fetch
parent985016df616e00fe5fcffd10b645af77953d0e90 (diff)
Notes
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/http.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index 9d98c2a95a9c..d88f0bac46ff 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.4.2.2 1997/08/03 18:53:18 peter Exp $
+ * $Id: http.c,v 1.4.2.3 1997/09/15 08:07:05 jkh Exp $
*/
#include <sys/types.h>
@@ -1297,7 +1297,8 @@ 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++) {