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 /sql | |
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 'sql')
-rw-r--r-- | sql/rpl_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_handler.cc b/sql/rpl_handler.cc index 5b75d6c30ea..ca3b57edce3 100644 --- a/sql/rpl_handler.cc +++ b/sql/rpl_handler.cc @@ -260,7 +260,7 @@ int Binlog_storage_delegate::after_flush(THD *thd, thd->semisync_info= log_info; } - strcpy(log_info->log_file, log_file+dirname_length(log_file)); + strmake_buf(log_info->log_file, log_file+dirname_length(log_file)); log_info->log_pos = log_pos; FOREACH_OBSERVER(ret, after_flush, false, |