summaryrefslogtreecommitdiffhomepage
path: root/cli-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-12-06 13:11:41 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-12-06 13:11:41 +0000
commitd5897b9a5d461c91cd525e5b2212125cf53ad268 (patch)
treecec78b43140a2610175f8e918ae22bfff0bbdf1f /cli-auth.c
parent7b780efb42e3d9b369b4f00421fba1fc21ec2a22 (diff)
parent35bcc463e5ffe2f630c71962ca12d69a84952568 (diff)
merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f'
and '31dcd7a22983ef19d6c63248e415e71d292dd0ec' --HG-- extra : convert_revision : e84f66826c7ee6ebe99ef92cc0f6c22ecf638d01
Diffstat (limited to 'cli-auth.c')
-rw-r--r--cli-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-auth.c b/cli-auth.c
index ba4cf6c..4c17a21 100644
--- a/cli-auth.c
+++ b/cli-auth.c
@@ -281,11 +281,11 @@ void cli_auth_try() {
/* A helper for getpass() that exits if the user cancels. The returned
* password is statically allocated by getpass() */
-char* getpass_or_cancel()
+char* getpass_or_cancel(char* prompt)
{
char* password = NULL;
- password = getpass("Password: ");
+ password = getpass(prompt);
/* 0x03 is a ctrl-c character in the buffer. */
if (password == NULL || strchr(password, '\3') != NULL) {