summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandocdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandocdb.c b/mandocdb.c
index 9cbdd8c9..de4f2b70 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1325,8 +1325,8 @@ pformatted(DB *hash, struct buf *buf, struct buf *dbuf,
* bytes).
*/
- if (NULL != (p = strrchr(line, '-'))) {
- for (++p; ' ' == *p || '\b' == *p; p++)
+ if (NULL != (p = strstr(line, "- "))) {
+ for (p += 2; ' ' == *p || '\b' == *p; p++)
/* Skip to next word. */ ;
} else
p = line;