summaryrefslogtreecommitdiffstats
path: root/mdoc_strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-15 09:38:37 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-15 09:38:37 +0000
commit9e7021023952321677456dcd229745ea500abdf5 (patch)
tree62c515caaf7b43af468dddfaed7ceb7def8a74b8 /mdoc_strings.c
parent106a192731392f903066aea4df07966080bf245a (diff)
downloadmandoc-9e7021023952321677456dcd229745ea500abdf5.tar.gz
Mdocdate fix (literals being replaced) ({cnst,schwarze}@openbsd.org).
Diffstat (limited to 'mdoc_strings.c')
-rw-r--r--mdoc_strings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_strings.c b/mdoc_strings.c
index 24bc2b00..9a715a9e 100644
--- a/mdoc_strings.c
+++ b/mdoc_strings.c
@@ -216,9 +216,9 @@ mdoc_atotime(const char *p)
(void)memset(&tm, 0, sizeof(struct tm));
- if (0 == strcmp(p, "$Mdocdate$"))
+ if (0 == strcmp(p, "$" "Mdocdate$"))
return(time(NULL));
- if ((pp = strptime(p, "$Mdocdate$", &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)