Commit 3598b1ea authored by unknown's avatar unknown

Merge work:/home/bk/mysql

into mysql.sashanet.com:/home/sasha/src/bk/mysql

parents 65103092 bc564fd0
...@@ -455,7 +455,7 @@ void Query_log_event::print(FILE* file, bool short_form, char* last_db) ...@@ -455,7 +455,7 @@ void Query_log_event::print(FILE* file, bool short_form, char* last_db)
if(db && last_db) if(db && last_db)
{ {
if(!(same_db = !memcmp(last_db, db, db_len))) if(!(same_db = !memcmp(last_db, db, db_len + 1)))
memcpy(last_db, db, db_len + 1); memcpy(last_db, db, db_len + 1);
} }
...@@ -646,7 +646,7 @@ void Load_log_event::print(FILE* file, bool short_form, char* last_db) ...@@ -646,7 +646,7 @@ void Load_log_event::print(FILE* file, bool short_form, char* last_db)
if(db && last_db) if(db && last_db)
{ {
if(!(same_db = !memcmp(last_db, db, db_len))) if(!(same_db = !memcmp(last_db, db, db_len + 1)))
memcpy(last_db, db, db_len + 1); memcpy(last_db, db, db_len + 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment