]> Pileus Git - ~andy/fetchmail/commitdiff
Shrouding fix.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 3 Jun 2002 01:16:04 +0000 (01:16 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 3 Jun 2002 01:16:04 +0000 (01:16 -0000)
svn path=/trunk/; revision=3622

fetchmail.h
imap.c
transact.c

index a2e7b10a43799317b464bdef6f7a4e3a1b519278..1c1d49446d5abf78c0d129252017a32560778a99 100644 (file)
@@ -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;
diff --git a/imap.c b/imap.c
index 856b1f27f873baa32bcf0e515f24536a8d1a71c4..c9792072d6ce5acc1c182a7b2de74b95ead3c358 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -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)
index 19beb8cf60a0d03bd8042d79d5ee73bfc18bd477..0d219ad05649fbfc2ded3232318b60953353d978 100644 (file)
@@ -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];