From a246292f836147375dc6f624f58cc10c9f0d4f39 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 27 Jul 2011 13:47:26 +0000 Subject: Critical fix to avoid looping forever. --- roff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index 259817d2..d4123375 100644 --- a/roff.c +++ b/roff.c @@ -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); -- cgit