summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-08-03 11:24:05 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-08-03 13:06:35 +0300
commit7b145fae13d179f5cdc2798e7f892bbae79093ee (patch)
tree00715077b319dde42d35499cab5287c3267ca2a6 /extra
parent391e60b2dbdf98066cc8c8c2ee0a58e7de879d4e (diff)
downloadmariadb-git-7b145fae13d179f5cdc2798e7f892bbae79093ee.tar.gz
mariabackup: Use snprintf() instead of sprintf()
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/xtrabackup.cc2
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"