summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2000-12-01 01:55:31 +0000
committerFrank M. Kromann <fmk@php.net>2000-12-01 01:55:31 +0000
commitf9e226fe4a145664eff1a2dd76edbd4a62a5cc87 (patch)
treea3e3f823a0b53795e86e830a205e43170113996a
parent518ab3c62f2f85440a332f55009cae9208078cc3 (diff)
downloadphp-git-f9e226fe4a145664eff1a2dd76edbd4a62a5cc87.tar.gz
Fixing bug 8061. Position counter starts a 0 but was compared with length.
oops. the fix should be made twice.
-rw-r--r--ext/standard/string.c2
1 files changed, 1 insertions, 1 deletions
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;