diff options
author | bar@mysql.com <> | 2004-10-29 17:00:39 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2004-10-29 17:00:39 +0500 |
commit | 7577c8bfc9efb21b8a8a3c08e342054e754370ab (patch) | |
tree | 9cc9765d8b1a393421a6e3df083461c690d1c028 /sql/thr_malloc.cc | |
parent | 64c59b37f899e520f6ba3ff8d0f9724423eb9b88 (diff) | |
download | mariadb-git-7577c8bfc9efb21b8a8a3c08e342054e754370ab.tar.gz |
A fix according to Monty's request:
"uint *errors" is now a non-optional parameter in String:copy()
and copy_and_convert().
Diffstat (limited to 'sql/thr_malloc.cc')
-rw-r--r-- | sql/thr_malloc.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; |