summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <reggie@ugeek.(none)>2005-10-18 17:53:09 -0500
committerunknown <reggie@ugeek.(none)>2005-10-18 17:53:09 -0500
commit72a2de023193f1bd127831ebfddd35e4c8c8e103 (patch)
treeca4e7197ab2ddcc7d416c3f57a8d7c4b0704ee5d /client
parent0aff963ad72d8061e85956e99efffb3bf0bfa504 (diff)
downloadmariadb-git-72a2de023193f1bd127831ebfddd35e4c8c8e103.tar.gz
readd the my_cgets call that SergeyV originally put in
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 8d5e576ca23..27277f0eb93 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