summaryrefslogtreecommitdiff
path: root/sql/repl_failsafe.cc
diff options
context:
space:
mode:
authortsmith@ramayana.hindu.god <>2008-01-22 15:56:15 -0700
committertsmith@ramayana.hindu.god <>2008-01-22 15:56:15 -0700
commit6668554a8d95de344680732703e915217616cc62 (patch)
tree22de11d4d65b9eb7c56b5e80669f19cf9ff242f4 /sql/repl_failsafe.cc
parentc654ac56097e6953c64050502a8e380cb30324fa (diff)
parentc6a01870bc58a2ab47f1063ff6d091ee224e0410 (diff)
downloadmariadb-git-6668554a8d95de344680732703e915217616cc62.tar.gz
Merge ramayana.hindu.god:/home/tsmith/m/bk/51
into ramayana.hindu.god:/home/tsmith/m/bk/maint/51
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r--sql/repl_failsafe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc
index d33c81b55e8..589ee8b2605 100644
--- a/sql/repl_failsafe.cc
+++ b/sql/repl_failsafe.cc
@@ -946,7 +946,7 @@ bool load_master_data(THD* thd)
0, (SLAVE_IO | SLAVE_SQL)))
my_message(ER_MASTER_INFO, ER(ER_MASTER_INFO), MYF(0));
strmake(active_mi->master_log_name, row[0],
- sizeof(active_mi->master_log_name));
+ sizeof(active_mi->master_log_name) -1);
active_mi->master_log_pos= my_strtoll10(row[1], (char**) 0, &error_2);
/* at least in recent versions, the condition below should be false */
if (active_mi->master_log_pos < BIN_LOG_HEADER_SIZE)