From 5d7082e1b227c801f1398d2920db527f54dfe7f6 Mon Sep 17 00:00:00 2001
From: unknown <tnurnberg@sin.intern.azundris.com>
Date: Wed, 27 Jun 2007 13:19:28 +0200
Subject: [PATCH] Bug#22540: Incorrect value in column End_log_pos of SHOW
 BINLOG EVENTS using InnoDB

Windows fixies
---
 sql/log.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/log.cc b/sql/log.cc
index f682b9b206..af8168c6a4 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1957,7 +1957,7 @@ bool MYSQL_LOG::write(THD *thd, IO_CACHE *cache, Log_event *commit_event)
             {
               /* we've got a full event-header, and it came in one piece */
 
-              char *log_pos= cache->read_pos + hdr_offs + LOG_POS_OFFSET;
+              char *log_pos= (char *)cache->read_pos + hdr_offs + LOG_POS_OFFSET;
 
               /* fix end_log_pos */
               val= uint4korr(log_pos) + group;
-- 
2.30.9