summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorreggie@ugeek.(none) <>2005-10-18 17:53:09 -0500
committerreggie@ugeek.(none) <>2005-10-18 17:53:09 -0500
commit600c7df8f1f51aa02edd8f52e0bbb5c964af361c (patch)
treeca4e7197ab2ddcc7d416c3f57a8d7c4b0704ee5d /client
parentee8e1637768f93bbb07ac6826e2496bd7d4c791a (diff)
downloadmariadb-git-600c7df8f1f51aa02edd8f52e0bbb5c964af361c.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