diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-02 08:40:31 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-02 08:40:31 +0000 |
commit | a6825f7e22dacb754e679b02fac1da06e2f8f1de (patch) | |
tree | 15901db181aa77674bd07671122bcf89bbe5b8fb | |
parent | 4ff92f97d4260b3ca041885efbb560dedeecb80f (diff) | |
download | mandoc-a6825f7e22dacb754e679b02fac1da06e2f8f1de.tar.gz |
Fix in junking dot lines in -man (from PR by Alex Kozlov).
-rw-r--r-- | man.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -454,8 +454,8 @@ man_pmacro(struct man *m, int ln, char *buf) fl = m->flags; - if (0 == buf[1]) - goto out; + if ('\0' == buf[1]) + return(1); i = 1; @@ -484,7 +484,7 @@ man_pmacro(struct man *m, int ln, char *buf) return(man_perr(m, ln, i, WNPRINT)); } - mac[j] = 0; + mac[j] = '\0'; if (j == 4 || j < 1) { if ( ! (MAN_IGN_MACRO & m->pflags)) { |