=================================================================== RCS file: /cvs/mandoc/Attic/mdoc_strings.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- mandoc/Attic/mdoc_strings.c 2009/06/12 12:40:44 1.4 +++ mandoc/Attic/mdoc_strings.c 2009/06/15 09:38:37 1.5 @@ -1,4 +1,4 @@ -/* $Id: mdoc_strings.c,v 1.4 2009/06/12 12:40:44 kristaps Exp $ */ +/* $Id: mdoc_strings.c,v 1.5 2009/06/15 09:38:37 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -216,9 +216,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (0 == strcmp(p, "$Mdocdate: June 12 2009 $")) + if (0 == strcmp(p, "$" "Mdocdate$")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: June 12 2009 $", &tm)) && 0 == *pp) + 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)