/*
- * $Id: rfc1123.c,v 1.20 1998/07/22 20:36:37 wessels Exp $
+ * $Id: rfc1123.c,v 1.21 1998/11/12 06:30:15 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
#if HAVE_STDIO_H
#include <stdio.h>
#endif
+#if HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#if HAVE_STRING_H
#include <string.h>
#endif
return -1;
tm.tm_mday = make_num(s + 8);
tm.tm_mon = make_month(s + 4);
- tm.tm_year = make_num(s + 22);
+ /* Y2K fix, richard.kettlewell@kewill.com */
+ tm.tm_year = atoi(s + 20) - 1900;
tm.tm_hour = make_num(s + 11);
tm.tm_min = make_num(s + 14);
tm.tm_sec = make_num(s + 17);