summaryrefslogtreecommitdiff
path: root/sql/mysql_install_db.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2019-11-15 15:37:25 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2019-11-15 15:39:31 +0100
commit009674dc52841061dd8495fd045102fef7721826 (patch)
tree98d2ed70f7c82152a5ddf1199b280005a4e150c8 /sql/mysql_install_db.cc
parent6df0bb7d382fa7a6043fc7e9587889d3b53976b7 (diff)
downloadmariadb-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.cc2
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);
}