summaryrefslogtreecommitdiff
path: root/storage/innobase/dict/dict0mem.cc
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2018-01-24 15:18:36 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-01-24 15:18:36 +0200
commitb20f821e0723c27d6ce121aafb2eb6c6d89bcd57 (patch)
treec04492f4535f7e3c84427f0b5ad5381cfdf1c4b6 /storage/innobase/dict/dict0mem.cc
parentd833bb65d53b9a4375fa71cc485b4719fdb0ee53 (diff)
downloadmariadb-git-b20f821e0723c27d6ce121aafb2eb6c6d89bcd57.tar.gz
Fix Innodb ASAN error on init
Backport 7c03edf2fe66855a8ce8f2575c3aaf66af975377 from xtradb to innodb
Diffstat (limited to 'storage/innobase/dict/dict0mem.cc')
-rw-r--r--storage/innobase/dict/dict0mem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/dict/dict0mem.cc b/storage/innobase/dict/dict0mem.cc
index 2a98fa13473..81a4cd9c6c6 100644
--- a/storage/innobase/dict/dict0mem.cc
+++ b/storage/innobase/dict/dict0mem.cc
@@ -319,8 +319,8 @@ dict_mem_table_col_rename_low(
ut_ad(from_len <= NAME_LEN);
ut_ad(to_len <= NAME_LEN);
- char from[NAME_LEN];
- strncpy(from, s, NAME_LEN);
+ char from[NAME_LEN + 1];
+ strncpy(from, s, NAME_LEN + 1);
if (from_len == to_len) {
/* The easy case: simply replace the column name in