From 518ab3c62f2f85440a332f55009cae9208078cc3 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Fri, 1 Dec 2000 01:26:42 +0000 Subject: [PATCH] Fixing bug 8061. Position counter starts a 0 but was compared with length. --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index e4e653bd1d..65a5a843ba 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -287,7 +287,7 @@ PHP_FUNCTION(wordwrap) } l++; } - if (l > linelength) { + if (l >= linelength) { pgr = l; l = linelength; /* needs breaking; work backwards to find previous word */ -- 2.40.0