diff options
author | Frank M. Kromann <fmk@php.net> | 2000-12-01 01:26:42 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2000-12-01 01:26:42 +0000 |
commit | 518ab3c62f2f85440a332f55009cae9208078cc3 (patch) | |
tree | b11cf8f90789666398cf8ac5ca3f510058230330 | |
parent | 744f1a34ef2be0a810c082bafcc4f207a4242187 (diff) | |
download | php-git-518ab3c62f2f85440a332f55009cae9208078cc3.tar.gz |
Fixing bug 8061. Position counter starts a 0 but was compared with length.
-rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |