cvs: php4 /ext/standard string.c
| From: | Frank M. Kromann | Date: | Fri, 01 Dec 2000 01:26:43 +0000 |
| Subject: | cvs: php4 /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2834@lists.php.net to get a copy of this message | ||
fmk Thu Nov 30 17:26:43 2000 EDT
Modified files:
/php4/ext/standard string.c
Log:
Fixing bug 8061. Position counter starts a 0 but was compared with length.
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.166 php4/ext/standard/string.c:1.167
--- php4/ext/standard/string.c:1.166 Tue Nov 21 20:16:25 2000
+++ php4/ext/standard/string.c Thu Nov 30 17:26:42 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.166 2000/11/22 04:16:25 sas Exp $ */
+/* $Id: string.c,v 1.167 2000/12/01 01:26:42 fmk Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -287,7 +287,7 @@
}
l++;
}
- if (l > linelength) {
+ if (l >= linelength) {
pgr = l;
l = linelength;
/* needs breaking; work backwards to find previous word */