diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-03 11:24:05 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-03 13:06:35 +0300 |
commit | 7b145fae13d179f5cdc2798e7f892bbae79093ee (patch) | |
tree | 00715077b319dde42d35499cab5287c3267ca2a6 /extra | |
parent | 391e60b2dbdf98066cc8c8c2ee0a58e7de879d4e (diff) | |
download | mariadb-git-7b145fae13d179f5cdc2798e7f892bbae79093ee.tar.gz |
mariabackup: Use snprintf() instead of sprintf()
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index 390cdab52f2..9c961af2583 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -1370,7 +1370,7 @@ static int prepare_export() // which is* unfortunately* still necessary to get mysqld up if (strncmp(orig_argv1,"--defaults-file=",16) == 0) { - sprintf(cmdline, + snprintf(cmdline, sizeof cmdline, IF_WIN("\"","") "\"%s\" --mysqld \"%s\" " " --defaults-extra-file=./backup-my.cnf --defaults-group-suffix=%s --datadir=." " --innodb --innodb-fast-shutdown=0" |