Commit 715f8747 authored by kostja@oak.local's avatar kostja@oak.local

few compile-time bugs fixed

parent 09e53b01
......@@ -229,7 +229,7 @@ typedef struct st_mysql
my_bool reconnect; /* set to 1 if automatic reconnect */
/* session-wide random string */
char scramble[max(SCRAMBLE_LENGTH,SCRAMBLE_LENGTH_323)+1];
char scramble[SCRAMBLE_LENGTH+1];
/*
Set if this is the original connection, not a master or a slave we have
......
......@@ -139,7 +139,7 @@ THD::THD():user_time(0), is_fatal_error(0),
set_query_id=1;
db_access=NO_ACCESS;
version=refresh_version; // For boot
*scramble= *scramble_323= '\0';
*scramble= '\0';
init();
/* Initialize sub structures */
......
......@@ -547,7 +547,7 @@ class THD :public ilink
DYNAMIC_ARRAY user_var_events;
/* scramble - random string sent to client on handshake */
char scramble[max(SCRAMBLE_LENGTH, SCRAMBLE_LENGTH_323)+1];
char scramble[SCRAMBLE_LENGTH+1];
uint8 query_cache_type; // type of query cache processing
bool slave_thread;
......
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