summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2002-08-09 15:34:23 +0300
committerheikki@hundin.mysql.fi <>2002-08-09 15:34:23 +0300
commitedf3929cd589d150adccefc754a979ce7e5d7e36 (patch)
treee78c3490783ca4e40f59b2f8898bc10f53ec2555 /sql
parent933417c1fed0b0d8ff9eb27ba7ce3d9086a470a7 (diff)
downloadmariadb-git-edf3929cd589d150adccefc754a979ce7e5d7e36.tar.gz
ha_innobase.cc, trx0trx.h, lock0lock.c, trx0trx.c:
Add some more safety margin to buffer sizes in prints
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innobase.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc
index 251e6c3ca7e..5e6d4b5f50c 100644
--- a/sql/ha_innobase.cc
+++ b/sql/ha_innobase.cc
@@ -260,7 +260,7 @@ void
innobase_mysql_print_thd(
/*=====================*/
char* buf, /* in/out: buffer where to print, must be at least
- 300 bytes */
+ 400 bytes */
void* input_thd)/* in: pointer to a MySQL THD object */
{
THD* thd;
@@ -338,7 +338,7 @@ innobase_mysql_print_thd(
buf=strnmov(buf, thd->query, 150);
}
*buf='\n';
- /* Here we should add '\0' to the nd of output to mark its end */
+ /* Here we should add '\0' to the end of output to mark its end */
#endif
}
}