diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-05-17 15:27:10 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2016-05-17 15:27:10 +0400 |
commit | e7ff281d2e954f9ab7f08a3e1a425a3c59e8f796 (patch) | |
tree | e8e3903a609daef952785e28e5c876bafd52ba7b /strings/my_vsnprintf.c | |
parent | 7e66a24dfb381290d59786c36e1dc478ad365bd1 (diff) | |
download | mariadb-git-e7ff281d2e954f9ab7f08a3e1a425a3c59e8f796.tar.gz |
MDEV-6353 my_ismbchar() and my_mbcharlen() refactoring
Diffstat (limited to 'strings/my_vsnprintf.c')
-rw-r--r-- | strings/my_vsnprintf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/strings/my_vsnprintf.c b/strings/my_vsnprintf.c index 4178b20789d..75514a90925 100644 --- a/strings/my_vsnprintf.c +++ b/strings/my_vsnprintf.c @@ -168,8 +168,7 @@ static char *backtick_string(CHARSET_INFO *cs, char *to, const char *end, for ( ; par < par_end; par+= char_len) { uchar c= *(uchar *) par; - if (!(char_len= my_mbcharlen(cs, c))) - char_len= 1; + char_len= my_charlen_fix(cs, par, par_end); if (char_len == 1 && c == (uchar) quote_char ) { if (start + 1 >= end) |