Commit f9a80b34 authored by unknown's avatar unknown
Browse files

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


client/mysql.cc:
  Fix calculation of buffer size for _cgets()
parent d2f3847a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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