diff options
author | unknown <guilhem@mysql.com> | 2003-06-20 15:48:52 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2003-06-20 15:48:52 +0200 |
commit | 656fdcc722c67706b897444e5b33312d609957cb (patch) | |
tree | b50dd2a7115ce02d9271639ffdad966205fb5004 /client | |
parent | a7425f5ade8e9145b4bbe1107b5d32c163b71d32 (diff) | |
download | mariadb-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.cc | 4 |
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); |