From 6e781e11a9f7606b8b41532c382df9cf00617d17 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 29 Oct 2004 17:00:39 +0500 Subject: A fix according to Monty's request: "uint *errors" is now a non-optional parameter in String:copy() and copy_and_convert(). --- sql/thr_malloc.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sql/thr_malloc.cc') diff --git a/sql/thr_malloc.cc b/sql/thr_malloc.cc index fa678ec7de2..0df60858bcb 100644 --- a/sql/thr_malloc.cc +++ b/sql/thr_malloc.cc @@ -108,8 +108,11 @@ char *sql_strmake_with_convert(const char *str, uint32 arg_length, memcpy(pos, str, new_length); } else + { + uint dummy_errors; new_length= copy_and_convert((char*) pos, new_length, to_cs, str, - arg_length, from_cs); + arg_length, from_cs, &dummy_errors); + } pos[new_length]= 0; *result_length= new_length; return pos; -- cgit v1.2.1