summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2003-06-20 15:48:52 +0200
committerunknown <guilhem@mysql.com>2003-06-20 15:48:52 +0200
commit656fdcc722c67706b897444e5b33312d609957cb (patch)
treeb50dd2a7115ce02d9271639ffdad966205fb5004 /client
parenta7425f5ade8e9145b4bbe1107b5d32c163b71d32 (diff)
downloadmariadb-git-656fdcc722c67706b897444e5b33312d609957cb.tar.gz
fix for BUG#691 (4.0 mysqlbinlog couldn't read 3.23 binlog).
Safe parenthesis.
Diffstat (limited to 'client')
-rw-r--r--client/mysqlbinlog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 75b875b4f4e..9ef340197a7 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -396,8 +396,8 @@ static int check_header(IO_CACHE* file)
if (buf[4] == START_EVENT)
{
uint event_len;
- event_len = uint4korr(buf + 4);
- old_format = (event_len < LOG_EVENT_HEADER_LEN + START_HEADER_LEN);
+ event_len = uint4korr(buf + EVENT_LEN_OFFSET);
+ old_format = (event_len < (LOG_EVENT_HEADER_LEN + START_HEADER_LEN));
}
}
my_b_seek(file, pos);