summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <lars@mysql.com>2005-10-24 17:23:45 +0200
committerunknown <lars@mysql.com>2005-10-24 17:23:45 +0200
commite897eb3492f068216465e0948c62ea8e7a8a7a8b (patch)
tree46e9e0a80d9413c8c025bbd0468b23d67560b572 /client
parente5eab7dd97f6e14da55e5c1cbbb847875df1ff28 (diff)
parent19758ce635dbb023844f8698a60a6ae80cfb7489 (diff)
downloadmariadb-git-e897eb3492f068216465e0948c62ea8e7a8a7a8b.tar.gz
Merge mysql.com:/users/lthalmann/bkroot/mysql-5.0
into mysql.com:/users/lthalmann/bk/mysql-5.0-hexdump
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 3882b61b9ad..bf417e73e22 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1010,10 +1010,12 @@ static int read_and_execute(bool interactive)
#elif defined(__WIN__)
if (!tmpbuf.is_alloced())
tmpbuf.alloc(65535);
+ tmpbuf.length(0);
buffer.length(0);
unsigned long clen;
do
{
+ line= my_cgets((char*)tmpbuf.ptr(), tmpbuf.alloced_length()-1, &clen);
buffer.append(line, clen);
/*
if we got buffer fully filled than there is a chance that