diff options
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..8a83f22751a 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)); + strncat_s(default_datadir, sizeof(default_datadir), "\\data", _TRUNCATE); opt_datadir= default_datadir; printf("Default data directory is %s\n",opt_datadir); } |