summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2011-08-24 15:22:33 +0200
committerBjorn Munch <bjorn.munch@oracle.com>2011-08-24 15:22:33 +0200
commit97a33d38edb23d9c8baf6e4d97902f0d511d6865 (patch)
tree60ede7bee9f9b6be781e6666736ab282c0b7a6b7
parent842674380dfa9fec75a49feefbb5871839fa6f19 (diff)
downloadmariadb-git-97a33d38edb23d9c8baf6e4d97902f0d511d6865.tar.gz
Backporting fix from trunk (revid 3381), original comment:
Blind attempt to fix BUG 12881278 - MAIN.MYISAM TEST FAILS ON LINUX The printed text is truncated on char 63: "MySQL thread id 1236, OS thread handle 0x7ff187b96700, query id" still I do not understand how this truncation could have caused the main.myisam failure but anyway - the buffer needs to be increased.
-rw-r--r--sql/sql_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 0b1de2c47fa..9b5772d3d07 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -641,7 +641,7 @@ char *thd_security_context(THD *thd, char *buffer, unsigned int length,
{
String str(buffer, length, &my_charset_latin1);
const Security_context *sctx= &thd->main_security_ctx;
- char header[64];
+ char header[256];
int len;
/*
The pointers thd->query and thd->proc_info might change since they are