aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-16 00:04:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-16 00:04:46 +0000
commit56769575b59463282f2527c0dccc339862efdf04 (patch)
tree0899065e5d420c864dadcf8b923647754dc30eb5 /main.c
parentd231ab40d54aff1a0d68b8894330621f91bcce4a (diff)
downloadmandoc-56769575b59463282f2527c0dccc339862efdf04.tar.gz
mandoc-56769575b59463282f2527c0dccc339862efdf04.tar.zst
mandoc-56769575b59463282f2527c0dccc339862efdf04.zip
Fix allowing silly '\'' control character.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 90960915..730d4397 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.74 2010/05/15 22:28:22 kristaps Exp $ */
+/* $Id: main.c,v 1.75 2010/05/16 00:04:46 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -574,7 +574,7 @@ pset(const char *buf, int pos, struct curparse *curp,
* default to -man, which is more lenient.
*/
- if (buf[0] == '.') {
+ if ('.' == buf[0] || '\'' == buf[0]) {
for (i = 1; buf[i]; i++)
if (' ' != buf[i] && '\t' != buf[i])
break;