diff options
author | Michael Widenius <monty@askmonty.org> | 2010-04-08 16:02:49 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-04-08 16:02:49 +0300 |
commit | 8ee9c636682c28eac0e30a633a7ef75cc77ebf8b (patch) | |
tree | fc813bdf17fd26ba912a17188c864e09cda16684 /plugin | |
parent | db1d83a5cca4c1b9d96b8580ae2bde80a31f1ad8 (diff) | |
download | mariadb-git-8ee9c636682c28eac0e30a633a7ef75cc77ebf8b.tar.gz |
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)
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/auth/dialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/auth/dialog.c b/plugin/auth/dialog.c index 95998fcc0d0..4fa1b5e66e5 100644 --- a/plugin/auth/dialog.c +++ b/plugin/auth/dialog.c @@ -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; |