diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2019-11-15 15:37:25 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2019-11-15 15:39:31 +0100 |
commit | 009674dc52841061dd8495fd045102fef7721826 (patch) | |
tree | 98d2ed70f7c82152a5ddf1199b280005a4e150c8 /sql/mysql_install_db.cc | |
parent | 6df0bb7d382fa7a6043fc7e9587889d3b53976b7 (diff) | |
download | mariadb-git-009674dc52841061dd8495fd045102fef7721826.tar.gz |
Fix a couple of clang-cl warnings
Diffstat (limited to 'sql/mysql_install_db.cc')
-rw-r--r-- | sql/mysql_install_db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysql_install_db.cc b/sql/mysql_install_db.cc index 85507a0abde..54bd46240bc 100644 --- a/sql/mysql_install_db.cc +++ b/sql/mysql_install_db.cc @@ -188,7 +188,7 @@ int main(int argc, char **argv) die("--datadir option not provided, and default datadir not found"); my_print_help(my_long_options); } - strncat(default_datadir, "\\data", sizeof(default_datadir)); + strcat_s(default_datadir, "\\data"); opt_datadir= default_datadir; printf("Default data directory is %s\n",opt_datadir); } |