From 1851a38b2f1bd0d2be665fa1abbbd17e4d37fd64 Mon Sep 17 00:00:00 2001 From: "holyfoot@hf-ibm.(none)" <> Date: Tue, 10 May 2005 02:15:59 +0500 Subject: Fix for bug #10493 (SJIS fields are not correctly saved) --- strings/ctype-sjis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strings') diff --git a/strings/ctype-sjis.c b/strings/ctype-sjis.c index 35182db3345..b018e148ffe 100644 --- a/strings/ctype-sjis.c +++ b/strings/ctype-sjis.c @@ -4576,7 +4576,7 @@ uint my_well_formed_len_sjis(CHARSET_INFO *cs __attribute__((unused)), { const char *b0= b; *error= 0; - while (pos && b < e) + while (pos-- && b < e) { if ((uchar) b[0] < 128) { -- cgit v1.2.1