diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-06-03 01:16:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-06-03 01:16:04 +0000 |
commit | 6fef88e75d33de13a07030a4a13774e709ef7f20 (patch) | |
tree | 12c18c129467a364a7663b438448cac37282e447 | |
parent | 4a62610b861fabf546e44ee8e744ba05c64271f6 (diff) | |
download | fetchmail-6fef88e75d33de13a07030a4a13774e709ef7f20.tar.gz fetchmail-6fef88e75d33de13a07030a4a13774e709ef7f20.tar.bz2 fetchmail-6fef88e75d33de13a07030a4a13774e709ef7f20.zip |
Shrouding fix.
svn path=/trunk/; revision=3622
-rw-r--r-- | fetchmail.h | 2 | ||||
-rw-r--r-- | imap.c | 2 | ||||
-rw-r--r-- | transact.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fetchmail.h b/fetchmail.h index a2e7b10a..1c1d4944 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -383,7 +383,7 @@ extern int pass; /* number of re-polling pass */ extern flag configdump; /* dump control blocks as Python dictionary */ extern char *fetchmailhost; /* either "localhost" or an FQDN */ extern int suppress_tags; /* suppress tags in tagged protocols? */ -extern char shroud[PASSWORDLEN]; /* string to shroud in debug output */ +extern char shroud[PASSWORDLEN*2+1]; /* string to shroud in debug output */ #ifdef SDPS_ENABLE extern char *sdps_envfrom; extern char *sdps_envto; @@ -439,7 +439,7 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting) imap_canonicalize(remotename, ctl->remotename, NAMELEN); imap_canonicalize(password, ctl->password, PASSWORDLEN); - strcpy(shroud, ctl->password); + strcpy(shroud, password); ok = gen_transact(sock, "LOGIN \"%s\" \"%s\"", remotename, password); shroud[0] = '\0'; if (ok) @@ -40,7 +40,7 @@ extern char *strstr(); /* needed on sysV68 R3V7.1. */ int mytimeout; /* value of nonreponse timeout */ int suppress_tags; /* emit tags? */ -char shroud[PASSWORDLEN]; /* string to shroud in debug output */ +char shroud[PASSWORDLEN*2+1]; /* string to shroud in debug output */ struct msgblk msgblk; char tag[TAGLEN]; |