summaryrefslogtreecommitdiff
path: root/client/mysql.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-05-16 20:21:38 +0300
committerunknown <monty@mysql.com>2005-05-16 20:21:38 +0300
commit40f1e90e75436c1ef2502fbb0432c7041c9d4ebc (patch)
tree9bd9972fc600140efd8de75a12844fa0d12c619c /client/mysql.cc
parentdfdba9a1811b77fe47bf65b54f40b4acad98fed5 (diff)
parent2c35790c40f93b15fce67e1927737def8a85b6e1 (diff)
downloadmariadb-git-40f1e90e75436c1ef2502fbb0432c7041c9d4ebc.tar.gz
Merge with 4.1 to get fix for memory leak
client/mysql.cc: Auto merged sql/item.h: Auto merged sql/sql_base.cc: merge
Diffstat (limited to 'client/mysql.cc')
-rw-r--r--client/mysql.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 15917e99a23..c3e79384938 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2094,7 +2094,8 @@ print_table_data(MYSQL_RES *result)
separator.fill(separator.length()+length+2,'-');
separator.append('+');
}
- tee_puts(separator.c_ptr_safe(), PAGER);
+ separator.append('\0'); // End marker for \0
+ tee_puts((char*) separator.ptr(), PAGER);
if (column_names)
{
mysql_field_seek(result,0);
@@ -2107,7 +2108,7 @@ print_table_data(MYSQL_RES *result)
num_flag[off]= IS_NUM(field->type);
}
(void) tee_fputs("\n", PAGER);
- tee_puts(separator.c_ptr(), PAGER);
+ tee_puts((char*) separator.ptr(), PAGER);
}
while ((cur= mysql_fetch_row(result)))
@@ -2136,7 +2137,7 @@ print_table_data(MYSQL_RES *result)
}
(void) tee_fputs("\n", PAGER);
}
- tee_puts(separator.c_ptr(), PAGER);
+ tee_puts((char*) separator.ptr(), PAGER);
my_afree((gptr) num_flag);
}