summaryrefslogtreecommitdiffstatshomepage
path: root/strings.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-27 13:44:24 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-27 13:44:24 +0000
commitd412ae3c0de385ea9498645ea9191642ad37eae6 (patch)
tree2e3c4fc12494a9aee3b8b49d2e764fc70ebff770 /strings.c
parent9f8dd9d1a39f94e7aed1b9b4a7abe13a5a96b450 (diff)
downloadmandoc-d412ae3c0de385ea9498645ea9191642ad37eae6.tar.gz
mandoc-d412ae3c0de385ea9498645ea9191642ad37eae6.tar.zst
mandoc-d412ae3c0de385ea9498645ea9191642ad37eae6.zip
Fixes in going over all OpenBSD manuals.
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/strings.c b/strings.c
index cc1c3a44..a3e3836b 100644
--- a/strings.c
+++ b/strings.c
@@ -1,4 +1,4 @@
-/* $Id: strings.c,v 1.32 2009/03/23 14:22:11 kristaps Exp $ */
+/* $Id: strings.c,v 1.33 2009/03/27 13:44:24 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -89,6 +89,8 @@ mdoc_isescape(const char *p)
/* FALLTHROUGH */
case ('%'):
/* FALLTHROUGH */
+ case ('0'):
+ /* FALLTHROUGH */
case (' '):
/* FALLTHROUGH */
case ('|'):
@@ -210,9 +212,9 @@ mdoc_atotime(const char *p)
(void)memset(&tm, 0, sizeof(struct tm));
- if (xstrcmp(p, "$Mdocdate: March 23 2009 $"))
+ if (xstrcmp(p, "$Mdocdate: March 27 2009 $"))
return(time(NULL));
- if ((pp = strptime(p, "$Mdocdate: March 23 2009 $", &tm)) && 0 == *pp)
+ if ((pp = strptime(p, "$Mdocdate: March 27 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)