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