Fixed compiler warnings

Changed version string to beta

client/mysql.cc:
  Fixed compiler warning
configure.in:
  Changed version string to beta
plugin/auth/dialog.c:
  Fixed compiler warning (gets() is a not recommended function)
This commit is contained in:
Michael Widenius 2010-04-08 16:02:49 +03:00
commit 8ee9c63668
3 changed files with 6 additions and 5 deletions

View file

@ -224,11 +224,11 @@ static mysql_authentication_dialog_ask_t ask;
static char *builtin_ask(MYSQL *mysql __attribute__((unused)),
int type __attribute__((unused)),
const char *prompt,
char *buf, int buf_len __attribute__((unused)))
char *buf, int buf_len)
{
fputs(prompt, stdout);
fputc(' ', stdout);
if (gets(buf) == 0)
if (fgets(buf, buf_len, stdin) == 0)
return 0;
return buf;