From: Frank M. Kromann Date: Fri, 1 Dec 2000 01:55:31 +0000 (+0000) Subject: Fixing bug 8061. Position counter starts a 0 but was compared with length. X-Git-Tag: php-4.0.4RC3~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9e226fe4a145664eff1a2dd76edbd4a62a5cc87;p=php Fixing bug 8061. Position counter starts a 0 but was compared with length. oops. the fix should be made twice. --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 65a5a843ba..089f642876 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -331,7 +331,7 @@ PHP_FUNCTION(wordwrap) } l ++; } - if (l > linelength) { + if (l >= linelength) { pgr = l; l = linelength;