summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-04-08 16:07:43 +0300
committerMichael Widenius <monty@askmonty.org>2010-04-08 16:07:43 +0300
commit6e294768dc0a4beadcfd9a4d61701548831d9ccb (patch)
tree3b102808ddeea3b571abb145310fe7dfe1915143 /plugin
parente24e1668bc112afe4b4f6b3dc4d5b8d10635f60b (diff)
parent664709e7af2c25f217d97360f0afda909e053680 (diff)
downloadmariadb-git-6e294768dc0a4beadcfd9a4d61701548831d9ccb.tar.gz
Merge with local tree
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth/dialog.c4
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;