Commit 600c7df8 authored by reggie@ugeek.(none)'s avatar reggie@ugeek.(none)

readd the my_cgets call that SergeyV originally put in

parent ee8e1637
...@@ -1010,10 +1010,12 @@ static int read_and_execute(bool interactive) ...@@ -1010,10 +1010,12 @@ static int read_and_execute(bool interactive)
#elif defined(__WIN__) #elif defined(__WIN__)
if (!tmpbuf.is_alloced()) if (!tmpbuf.is_alloced())
tmpbuf.alloc(65535); tmpbuf.alloc(65535);
tmpbuf.length(0);
buffer.length(0); buffer.length(0);
unsigned long clen; unsigned long clen;
do do
{ {
line= my_cgets((char*)tmpbuf.ptr(), tmpbuf.alloced_length()-1, &clen);
buffer.append(line, clen); buffer.append(line, clen);
/* /*
if we got buffer fully filled than there is a chance that if we got buffer fully filled than there is a chance that
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment