diff options
author | Michael Widenius <monty@askmonty.org> | 2010-04-08 16:07:43 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-04-08 16:07:43 +0300 |
commit | 6e294768dc0a4beadcfd9a4d61701548831d9ccb (patch) | |
tree | 3b102808ddeea3b571abb145310fe7dfe1915143 /plugin | |
parent | e24e1668bc112afe4b4f6b3dc4d5b8d10635f60b (diff) | |
parent | 664709e7af2c25f217d97360f0afda909e053680 (diff) | |
download | mariadb-git-6e294768dc0a4beadcfd9a4d61701548831d9ccb.tar.gz |
Merge with local tree
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; |