From 6f8081d05895f04bf49a4c72a70ea36223e1a6f0 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 19 Apr 1996 13:39:53 +0000 Subject: [PATCH] Read password with des_read_pw_string. getpass truncates it too much. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@409 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/ftp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 8af0b5d60..8a2e11458 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -200,8 +200,10 @@ login(char *host) if (n == CONTINUE) { if(auth_complete) pass = user; - else if (pass == NULL) - pass = getpass("Password:"); + else if (pass == NULL) { + des_read_pw_string (tmp, sizeof(tmp), "Password:", 0); + pass = tmp; + } n = command("PASS %s", pass); } if (n == CONTINUE) {