1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00

Fix for bug #10493 (SJIS fields are not correctly saved)

This commit is contained in:
holyfoot@hf-ibm.(none)
2005-05-10 02:15:59 +05:00
parent c783cb3d7e
commit 1851a38b2f
2 changed files with 2 additions and 1 deletions

View File

@@ -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)
{