summaryrefslogtreecommitdiff
path: root/strings/ctype-sjis.c
diff options
context:
space:
mode:
authorunknown <holyfoot@hf-ibm.(none)>2005-05-10 02:15:59 +0500
committerunknown <holyfoot@hf-ibm.(none)>2005-05-10 02:15:59 +0500
commit5cc6f2edb387367844e52fea6d6e69de40d34a7d (patch)
treea8c55db9f75348d77b00a6d9350123af717871a3 /strings/ctype-sjis.c
parent66446b31b76da837de29a25a987f24eb451b5920 (diff)
downloadmariadb-git-5cc6f2edb387367844e52fea6d6e69de40d34a7d.tar.gz
Fix for bug #10493 (SJIS fields are not correctly saved)
strings/ctype-sjis.c: pos should be decreased BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'strings/ctype-sjis.c')
-rw-r--r--strings/ctype-sjis.c2
1 files changed, 1 insertions, 1 deletions
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)
{