? Makefile.depend.patch ? Makefile.local ? apropos ? article-template.xml ? article1.html ? article1.xml ? cgi.h ? config.h ? config.log ? demandoc ? foo.1 ? foo.1.html ? foo.man ? foo.ps ? foo.sh ? gluPerspective.3 ? gluPerspective.html ? hspaces.diff ? html5.diff ? html5_cgi.diff ? html5_test2.diff ? itcrash.diff ? makewhatis ? mandoc ? mandoc.dSYM ? mandoc.html ? mandoc_term.diff ? mandocdb ? patch ? preconv ? querystring.diff ? roff_res_charwidth.patch ? scale.diff ? test.1 ? test.1.html ? test.1.ps ? test.2 ? test.2.ps ? test.ps ? testm.ps ? testn.ps ? unit_charwidth.patch Index: mandoc.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v retrieving revision 1.85 diff -u -p -r1.85 mandoc.c --- mandoc.c 16 Aug 2014 19:00:01 -0000 1.85 +++ mandoc.c 17 Aug 2014 23:56:04 -0000 @@ -150,6 +150,8 @@ mandoc_escape(const char **end, const ch *start = ++*end; term = ']'; break; + case '\0': + return(ESCAPE_ERROR); default: *sz = 1; break; @@ -199,7 +201,8 @@ mandoc_escape(const char **end, const ch /* FALLTHROUGH */ case 'x': if (strchr(" %&()*+-./0123456789:<=>", **start)) { - ++*end; + if ('\0' != **start) + ++*end; return(ESCAPE_ERROR); } gly = ESCAPE_IGNORE; @@ -250,6 +253,8 @@ mandoc_escape(const char **end, const ch *start = ++*end; term = '\''; break; + case '\0': + return(ESCAPE_ERROR); default: *sz = 1; break;