1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fix for Bug#7386 - IM fails to compile on alpha with Compaq C++ compiler

This commit is contained in:
petr@mysql.com
2004-12-19 03:07:05 +03:00
parent 7d68f2e40d
commit 52666fca26
2 changed files with 7 additions and 1 deletions

View File

@@ -191,9 +191,11 @@ void Mysql_connection_thread::run()
int Mysql_connection_thread::check_connection()
{
ulong pkt_len=0; // to hold client reply length
/* maximum size of the version string */
enum { MAX_VERSION_LENGTH= 80 };
/* buffer for the first packet */ /* packet contains: */
char buff[mysqlmanager_version_length + 1 + // server version, 0-ended
char buff[MAX_VERSION_LENGTH + 1 + // server version, 0-ended
4 + // connection id
SCRAMBLE_LENGTH + 2 + // scramble (in 2 pieces)
18]; // server variables: flags,