diff options
author | monty@mysql.com <> | 2005-03-21 23:46:11 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-03-21 23:46:11 +0200 |
commit | d8b078e4237a9490c5bc05f5b494214d5928d7c9 (patch) | |
tree | 577397cc3f61f408845744ee2b839dd184070121 /client | |
parent | 2aa44dd98d3b9f74a062c7c59a701fdaeff8d8ce (diff) | |
parent | a1ab786091b3af1620af03313b0c7a467813a5d2 (diff) | |
download | mariadb-git-d8b078e4237a9490c5bc05f5b494214d5928d7c9.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqldump.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index 46337c99732..867aa86c1fc 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -1093,7 +1093,7 @@ static void print_xml_row(FILE *xml_file, const char *row_name, number of fields in table, 0 if error */ -static uint getTableStructure(char *table, char* db) +static uint getTableStructure(char *table, char *db) { MYSQL_RES *tableRes; MYSQL_ROW row; @@ -1396,10 +1396,9 @@ static uint getTableStructure(char *table, char* db) /* Get MySQL specific create options */ if (create_options) { - char show_name_buff[FN_REFLEN]; + char show_name_buff[NAME_LEN*2+2+24]; /* Check memory for quote_for_like() */ - DBUG_ASSERT(2*sizeof(table) < sizeof(show_name_buff)); my_snprintf(buff, sizeof(buff), "show table status like %s", quote_for_like(table, show_name_buff)); |