Commit 9ba4a6c7 authored by jimw@mysql.com's avatar jimw@mysql.com

Fix calculation of buffer size for _cgets() on Windows. (Bug #10841)

parent eb9e5777
......@@ -972,7 +972,8 @@ static int read_lines(bool execute_commands)
*p = '\0';
}
#else
linebuffer[0]= (char) sizeof(linebuffer);
/* _cgets() expects the buffer size - 3 as the first byte */
linebuffer[0]= (char) sizeof(linebuffer) - 3;
line= _cgets(linebuffer);
#endif /* __NETWARE__ */
#else
......
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