From e6c7f6f22cb774b6eb39593ec07303c5f09cf85f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 29 Aug 2001 11:29:52 +0000 Subject: [PATCH] fix bug# 13017 - patch from tsukada@fminn.nagano.nagano.jp --- ext/mbstring/mbfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0