summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 08:40:31 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 08:40:31 +0000
commit6adc43f9274e4ee6c447a855f9b65a3fa37fd9a0 (patch)
treefc81bc89e65427b1437ec403ae8e471778de1df5
parentc584c7b52512f8443c1e18f799ecf1c95649dd35 (diff)
downloadmandoc-6adc43f9274e4ee6c447a855f9b65a3fa37fd9a0.tar.gz
mandoc-6adc43f9274e4ee6c447a855f9b65a3fa37fd9a0.tar.zst
mandoc-6adc43f9274e4ee6c447a855f9b65a3fa37fd9a0.zip
Fix in junking dot lines in -man (from PR by Alex Kozlov).
-rw-r--r--man.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/man.c b/man.c
index 1cc0811a..f6d53e3d 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.45 2009/10/30 05:58:37 kristaps Exp $ */
+/* $Id: man.c,v 1.46 2009/11/02 08:40:31 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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)) {