diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-27 13:47:26 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-27 13:47:26 +0000 |
commit | a246292f836147375dc6f624f58cc10c9f0d4f39 (patch) | |
tree | 22da63954eb5261ff107079991e5b8cc9bf5e844 | |
parent | 1554c4f6dffd3847bc9e6f7802c73e00e413efbc (diff) | |
download | mandoc-a246292f836147375dc6f624f58cc10c9f0d4f39.tar.gz |
Critical fix to avoid looping forever.
-rw-r--r-- | roff.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -538,8 +538,10 @@ roff_parsetext(char *p) if (ESCAPE_ERROR == esc) break; continue; - } else if ('-' != *p || p == start) + } else if ('-' != *p || p == start) { + p++; continue; + } l = *(p - 1); r = *(p + 1); |