diff --git a/storage/spider/spd_copy_tables.cc b/storage/spider/spd_copy_tables.cc index 75fc3a1d0afbe2bb49fcf0ffcb8986863eecc562..22469afedadbf693037c23e242741f657339df75 100644 --- a/storage/spider/spd_copy_tables.cc +++ b/storage/spider/spd_copy_tables.cc @@ -719,7 +719,7 @@ int spider_udf_copy_tables_create_table_list( ©_tables->link_idxs[1], sizeof(int) * copy_tables->link_idx_count[1], &tmp_name_ptr, sizeof(char) * ( - spider_table_name_length * 2 + copy_tables->database_length + 2 + spider_table_name_length * 2 + copy_tables->database_length + 3 ), NullS)) ) {