cvs: php4 /ext/mbstring mbfilter.c
| From: | Wez Furlong | Date: | Wed, 29 Aug 2001 11:29:52 +0000 |
| Subject: | cvs: php4 /ext/mbstring mbfilter.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7116@lists.php.net to get a copy of this message | ||
wez Wed Aug 29 07:29:52 2001 EDT
Modified files:
/php4/ext/mbstring mbfilter.c
Log:
fix bug# 13017 - patch from tsukada@fminn.nagano.nagano.jp
Index: php4/ext/mbstring/mbfilter.c
diff -u php4/ext/mbstring/mbfilter.c:1.15 php4/ext/mbstring/mbfilter.c:1.16
--- php4/ext/mbstring/mbfilter.c:1.15 Tue Aug 28 17:50:29 2001
+++ php4/ext/mbstring/mbfilter.c Wed Aug 29 07:29:52 2001
@@ -79,7 +79,7 @@
*
*/
-/* $Id: mbfilter.c,v 1.15 2001/08/28 21:50:29 wez Exp $ */
+/* $Id: mbfilter.c,v 1.16 2001/08/29 11:29:52 wez Exp $ */
#include <stdlib.h>
@@ -7061,10 +7061,10 @@
n = string->len;
if (p != NULL) {
while (n > 0) {
+ n--;
if ((*encoder->filter_function)(*p++, encoder) < 0) {
break;
}
- n--;
}
mbfl_convert_filter_flush(encoder);
if (pc.status != 0 && mkwidth > 0) {