mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
proper casting in COM_TABLE_DUMP (backported from 4.0)
This commit is contained in:
parent
615c94655d
commit
9e61e636be
1 changed files with 2 additions and 2 deletions
|
@ -768,8 +768,8 @@ bool do_command(THD *thd)
|
|||
thread_safe_increment(com_other,&LOCK_thread_count);
|
||||
slow_command = TRUE;
|
||||
char* data = packet + 1;
|
||||
uint db_len = *data;
|
||||
uint tbl_len = *(data + db_len + 1);
|
||||
uint db_len = *(uchar *)data;
|
||||
uint tbl_len = *(uchar *)(data + db_len + 1);
|
||||
char* db = sql_alloc(db_len + tbl_len + 2);
|
||||
memcpy(db, data + 1, db_len);
|
||||
char* tbl_name = db + db_len;
|
||||
|
|
Loading…
Add table
Reference in a new issue