=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/Attic/mdoc_strings.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/mandoc/Attic/mdoc_strings.c 2009/06/15 01:36:23 1.3 --- src/usr.bin/mandoc/Attic/mdoc_strings.c 2009/06/15 03:42:51 1.4 *************** *** 1,4 **** ! /* $Id: mdoc_strings.c,v 1.3 2009/06/15 01:36:23 schwarze Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * --- 1,4 ---- ! /* $Id: mdoc_strings.c,v 1.4 2009/06/15 03:42:51 schwarze Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * *************** *** 210,218 **** (void)memset(&tm, 0, sizeof(struct tm)); ! if (0 == strcmp(p, "$Mdocdate: June 15 2009 $")) return(time(NULL)); ! if ((pp = strptime(p, "$Mdocdate: June 15 2009 $", &tm)) && 0 == *pp) return(mktime(&tm)); /* XXX - this matches "June 1999", which is wrong. */ if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp) --- 210,218 ---- (void)memset(&tm, 0, sizeof(struct tm)); ! if (0 == strcmp(p, "$" "Mdocdate$")) return(time(NULL)); ! if ((pp = strptime(p, "$" "Mdocdate: %b %d %Y $", &tm)) && 0 == *pp) return(mktime(&tm)); /* XXX - this matches "June 1999", which is wrong. */ if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp)