From dbf022b757178338ca2d452c66c740fe5fe530cb Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 18 May 2015 09:37:31 +0200 Subject: [PATCH] fix loop termination, sparagraph --- src/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report.c b/src/report.c index 716ac27fa..55dc99ed7 100644 --- a/src/report.c +++ b/src/report.c @@ -518,7 +518,7 @@ void sparagraph(strlist ** SP, const char *s, unsigned int indent, char mark) width = REPORTWIDTH - indent; firstline = 1; - for (;;) { + while (s[0]) { unsigned int j = 0, i; for (i=0; s[j]; j=i) {