diff options
author | unknown <bar@bar.mysql.r18.ru> | 2002-11-11 18:43:33 +0400 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2002-11-11 18:43:33 +0400 |
commit | 84b95682cf6dd1444ebcf6de6521dd78877d5b18 (patch) | |
tree | 010f897b6190ff4efdeb8321d6e36e87f47fc592 /strings | |
parent | 50b32edc76d476a812a14727ccdfece3f85c7c72 (diff) | |
download | mariadb-git-84b95682cf6dd1444ebcf6de6521dd78877d5b18.tar.gz |
USER(), DATABASE() and CHARSET() functions are now UCS2 compatible
Bug fix in ctype-utf8.c
sql/item_strfunc.cc:
USER(), DATABASE() and CHARSET() functions are now UCS2 compatible
sql/item_strfunc.h:
USER(), DATABASE() and CHARSET() functions are now UCS2 compatible
sql/procedure.h:
USER(), DATABASE() and CHARSET() functions are now UCS2 compatible
strings/ctype-utf8.c:
Bug fix
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-utf8.c b/strings/ctype-utf8.c index 87a91f18e5f..e4afa4a0cee 100644 --- a/strings/ctype-utf8.c +++ b/strings/ctype-utf8.c @@ -2383,7 +2383,7 @@ static int my_vsnprintf_ucs2(char *dst, uint n, const char* fmt, va_list ap) if (left_len <= plen*2) plen = left_len/2 - 1; - for ( ; plen ; plen--, dst++, par++) + for ( ; plen ; plen--, dst+=2, par++) { dst[0]='\0'; dst[1]=par[0]; |