summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2002-11-10 17:44:36 +0400
committerunknown <bar@bar.mysql.r18.ru>2002-11-10 17:44:36 +0400
commit446a5b0ad584bca06a83f96acc15a2e085d93f75 (patch)
tree8b7e1444ca217c7e676d93adbcd893eb1a7e7089
parent992075e209b5cbed30fd23fc95b2618dc8e6bfe3 (diff)
downloadmariadb-git-446a5b0ad584bca06a83f96acc15a2e085d93f75.tar.gz
my_snprintf_ucs2 bug fix
-rw-r--r--strings/ctype-utf8.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strings/ctype-utf8.c b/strings/ctype-utf8.c
index 707ca8f5c77..87a91f18e5f 100644
--- a/strings/ctype-utf8.c
+++ b/strings/ctype-utf8.c
@@ -2382,7 +2382,7 @@ static int my_vsnprintf_ucs2(char *dst, uint n, const char* fmt, va_list ap)
plen = (uint) strlen(par);
if (left_len <= plen*2)
plen = left_len/2 - 1;
- dst=strnmov(dst,par,plen);
+
for ( ; plen ; plen--, dst++, par++)
{
dst[0]='\0';
@@ -2400,9 +2400,9 @@ static int my_vsnprintf_ucs2(char *dst, uint n, const char* fmt, va_list ap)
break;
iarg = va_arg(ap, int);
if (*fmt == 'd')
- dst=int10_to_str((long) iarg, nbuf, -10);
+ int10_to_str((long) iarg, nbuf, -10);
else
- dst=int10_to_str((long) (uint) iarg,nbuf,10);
+ int10_to_str((long) (uint) iarg,nbuf,10);
for (; pbuf[0]; pbuf++)
{