summaryrefslogtreecommitdiffstats
path: root/chars.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-15 15:47:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-15 15:47:46 +0000
commitde205044ce0e8b0414ab85bbd5e600391fe34e98 (patch)
treec8ac103de72d9177c7408747b5fee48d708a206a /chars.c
parent877bef0b9533150581c911aff80cfbb71c13de8e (diff)
downloadmandoc-de205044ce0e8b0414ab85bbd5e600391fe34e98.tar.gz
Fix missing support for \N'n' when calculating string widths in -Tascii
(oops). Do the same for -Thtml (oops^2).
Diffstat (limited to 'chars.c')
-rw-r--r--chars.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chars.c b/chars.c
index 98d436fe..72da5103 100644
--- a/chars.c
+++ b/chars.c
@@ -141,6 +141,7 @@ mchars_res2cp(struct mchars *arg, const char *p, size_t sz)
* This can only be a printable character (i.e., alnum, punct, space) so
* prevent the character from ruining our state (backspace, newline, and
* so on).
+ * If the character is illegal, returns '\0'.
*/
char
mchars_num2char(const char *p, size_t sz)