summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-17 17:53:27 +0300
committermonty@hundin.mysql.fi <>2001-09-17 17:53:27 +0300
commitfe1753de5874fc055a9441c6d815f007e89515ba (patch)
tree0bf9a91a591cb8a20364f84c6e12048a66a548f5 /sql
parent295107457f420a6f30e8f915c0cd9d3d8447cc86 (diff)
downloadmariadb-git-fe1753de5874fc055a9441c6d815f007e89515ba.tar.gz
Fixed locking problem when using bulk insert
Fixed array overrun when using drop_db Portability fixes
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index cacb154fe6b..05b380ebd77 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -246,7 +246,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
/* Drop the table nicely */
*fn_ext(file->name)=0; // Remove extension
TABLE_LIST *table_list=(TABLE_LIST*)
- thd->calloc(sizeof(*table_list)+ strlen(db)+strlen(file->name)+1);
+ thd->calloc(sizeof(*table_list)+ strlen(db)+strlen(file->name)+2);
if (!table_list)
{
my_dirend(dirp);