1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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

This commit is contained in:
jimw@mysql.com
2005-06-08 00:43:57 +02:00
parent eb9e5777ee
commit 9ba4a6c722

View File

@@ -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