From d471b069fd42aec572838fad4b0db5e5b87eaebb Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Apr 2005 11:53:15 +0500 Subject: Adding a new parameter for well_formed_length to return error. We'll use it for better warnign reporting. --- strings/ctype-ucs2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'strings/ctype-ucs2.c') diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c index 9c67d1b7846..f5d0721fa9b 100644 --- a/strings/ctype-ucs2.c +++ b/strings/ctype-ucs2.c @@ -1267,11 +1267,11 @@ uint my_charpos_ucs2(CHARSET_INFO *cs __attribute__((unused)), static uint my_well_formed_len_ucs2(CHARSET_INFO *cs __attribute__((unused)), - const char *b, - const char *e, - uint nchars) + const char *b, const char *e, + uint nchars, int *error) { uint nbytes= (e-b) & ~ (uint)1; + *error= 0; nchars*= 2; return min(nbytes, nchars); } -- cgit v1.2.1