summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandoc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index ca9759dc..f454a40e 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -199,7 +199,8 @@ mandoc_escape(const char **end, const char **start, int *sz)
/* FALLTHROUGH */
case 'x':
if (strchr(" %&()*+-./0123456789:<=>", **start)) {
- ++*end;
+ if ('\0' != **start)
+ ++*end;
return(ESCAPE_ERROR);
}
gly = ESCAPE_IGNORE;