aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1999-01-15 17:10:31 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1999-01-15 17:10:31 +0000
commit9caa4ddf6b74b445a6b58283238d4565e807f68c (patch)
tree05f8279f3eb585673af16b4882499068f2425946 /usr.bin/fetch
parentc1468430965eeec2be29418d5205a40253de3acf (diff)
Notes
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/http.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index 6d3fe267c198..2f08c1d2be0f 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.22 1998/12/08 13:00:49 cracauer Exp $
+ * $Id: http.c,v 1.23 1999/01/15 16:56:22 wollman Exp $
*/
#include <sys/types.h>
@@ -1429,8 +1429,9 @@ parse_http_date(char *string)
time(&now);
tmnow = gmtime(&now);
this2dyear = tmnow->tm_year % 100;
- if (tm.tm_year - this2dyear >= 50)
- tm.tm_year += 100;
+ tm.tm_year += tmnow->tm_year - this2dyear;
+ if (tm.tm_year - tmnow->tm_year >= 50)
+ tm.tm_year -= 100;
}
#undef digit