summaryrefslogtreecommitdiff
path: root/ext/mbstring
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2001-08-29 11:29:52 +0000
committerWez Furlong <wez@php.net>2001-08-29 11:29:52 +0000
commite6c7f6f22cb774b6eb39593ec07303c5f09cf85f (patch)
tree731c88f2f40f419211b1a0ac68fa2da4ebe7b01a /ext/mbstring
parentf824bf94f3dd71c83e59da6e73bbf30a8d517a54 (diff)
downloadphp-git-e6c7f6f22cb774b6eb39593ec07303c5f09cf85f.tar.gz
fix bug# 13017 - patch from tsukada@fminn.nagano.nagano.jp
Diffstat (limited to 'ext/mbstring')
-rw-r--r--ext/mbstring/mbfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/mbfilter.c b/ext/mbstring/mbfilter.c
index e5c896a087..00321673b9 100644
--- a/ext/mbstring/mbfilter.c
+++ b/ext/mbstring/mbfilter.c
@@ -7061,10 +7061,10 @@ mbfl_strimwidth(
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) {