summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorAndrei Elkin <andrei.elkin@oracle.com>2011-11-29 22:30:04 +0200
committerAndrei Elkin <andrei.elkin@oracle.com>2011-11-29 22:30:04 +0200
commit6a59acbad53402ab79dcc17910bc8de8af471f1b (patch)
tree5401e21ec849416d357a9b877491b848b10a2344 /sql/slave.cc
parent8d154f7a99e0b00cd37b9f92a5d2bf4cded25a10 (diff)
downloadmariadb-git-6a59acbad53402ab79dcc17910bc8de8af471f1b.tar.gz
reverting the initial patch for bug#13437900 for refinement.
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 5c931a79695..797bd8e37e7 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -1129,7 +1129,7 @@ int init_dynarray_intvar_from_file(DYNAMIC_ARRAY* arr, IO_CACHE* f)
memcpy(buf_act, buf, read_size);
snd_size= my_b_gets(f, buf_act + read_size, max_size - read_size);
if (snd_size == 0 ||
- ((snd_size + 1 == max_size - read_size) && buf[max_size - 2] != '\n'))
+ ((snd_size + 1 == max_size - read_size) && buf_act[max_size - 2] != '\n'))
{
/*
failure to make the 2nd read or short read again