summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-10-13 14:07:41 +0500
committerunknown <bar@mysql.com>2005-10-13 14:07:41 +0500
commitf4e36f9f043613f44e99aa9043ece9fa42e3053e (patch)
treee219d7665c5d4e677959784ff4c2492e925a6189 /strings
parent849eafa751b0a730e4bc1857d6d1a10c3e0eb963 (diff)
parentf40725afa9eeb7610b9fc4b8024c78939c065744 (diff)
downloadmariadb-git-f4e36f9f043613f44e99aa9043ece9fa42e3053e.tar.gz
Merge abarkov@bk-internal:/home/bk/mysql-5.0
into mysql.com:/usr/home/bar/mysql-5.0.b12547
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-cp932.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-cp932.c b/strings/ctype-cp932.c
index b5f36c030bd..3e5403446ce 100644
--- a/strings/ctype-cp932.c
+++ b/strings/ctype-cp932.c
@@ -5417,7 +5417,7 @@ uint my_well_formed_len_cp932(CHARSET_INFO *cs __attribute__((unused)),
{
const char *b0= b;
*error= 0;
- while (pos && b < e)
+ while (pos-- && b < e)
{
/*
Cast to int8 for extra safety.