diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2017-05-01 18:34:11 +1000 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-07-18 15:53:31 +0200 |
commit | 172e3a1bc6ab1e38dd8be074b2c10cc734456e35 (patch) | |
tree | b2d64d615c10c4cc24e8b469c2f904f8331f63d9 /plugin | |
parent | f9dbfa58a564262a5c696b0635c8186ecd84eeea (diff) | |
download | mariadb-git-172e3a1bc6ab1e38dd8be074b2c10cc734456e35.tar.gz |
MDEV-12646: Apply fixes found by Coverity static analysis tool
Inspired by: https://github.com/devexp-db/mariadb/blob/f27/mariadb-covscan-stroverflow.patch
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/semisync/semisync_master.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/semisync/semisync_master.cc b/plugin/semisync/semisync_master.cc index 3c22bcb94f2..16e6b091ca8 100644 --- a/plugin/semisync/semisync_master.cc +++ b/plugin/semisync/semisync_master.cc @@ -552,7 +552,7 @@ int ReplSemiSyncMaster::reportReplyBinlog(uint32 server_id, if (need_copy_send_pos) { - strcpy(reply_file_name_, log_file_name); + strmake_buf(reply_file_name_, log_file_name); reply_file_pos_ = log_file_pos; reply_file_name_inited_ = true; @@ -659,7 +659,7 @@ int ReplSemiSyncMaster::commitTrx(const char* trx_wait_binlog_name, if (cmp <= 0) { /* This thd has a lower position, let's update the minimum info. */ - strcpy(wait_file_name_, trx_wait_binlog_name); + strmake_buf(wait_file_name_, trx_wait_binlog_name); wait_file_pos_ = trx_wait_binlog_pos; rpl_semi_sync_master_wait_pos_backtraverse++; @@ -670,7 +670,7 @@ int ReplSemiSyncMaster::commitTrx(const char* trx_wait_binlog_name, } else { - strcpy(wait_file_name_, trx_wait_binlog_name); + strmake_buf(wait_file_name_, trx_wait_binlog_name); wait_file_pos_ = trx_wait_binlog_pos; wait_file_name_inited_ = true; |