aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-02-03 18:03:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-02-03 18:03:32 +0000
commit1eac3f01f7ceac456c25ff176fe8ebce870eb4cb (patch)
tree5e7d8e1f19e7c74ea6260bef4d5f1358ce4f3aa1
parent2be1639518a932a1d42989df6b1aae2ab9fc7d0d (diff)
downloadfetchmail-1eac3f01f7ceac456c25ff176fe8ebce870eb4cb.tar.gz
fetchmail-1eac3f01f7ceac456c25ff176fe8ebce870eb4cb.tar.bz2
fetchmail-1eac3f01f7ceac456c25ff176fe8ebce870eb4cb.zip
Fix stripcr and password-stripping.
svn path=/trunk/; revision=857
-rw-r--r--NEWS3
-rw-r--r--driver.c2
-rw-r--r--rcfile_y.y1
3 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 19686272..54c9e35d 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@
------------------------------------------------------------------------------
+pl 3.3.2 (Mon Feb 3 12:59:33 EST 1997):
+* Minor fixes to stripcr and password-shrouding logic.
+
pl 3.3.1 (Sun Feb 2 02:17:07 EST 1997):
* Fix incorrect stripcr processing
* Unapply a patch that broke error logging to files.
diff --git a/driver.c b/driver.c
index 9cdf0939..a9f868b2 100644
--- a/driver.c
+++ b/driver.c
@@ -1479,7 +1479,7 @@ va_dcl
*cp++ = '*';
while (*sp)
*cp++ = *sp++;
- *sp = '\0';
+ *cp = '\0';
}
buf[strlen(buf)-2] = '\0';
error(0, 0, "%s> %s", protocol->name, buf);
diff --git a/rcfile_y.y b/rcfile_y.y
index 693bcb9e..8f5f9e7c 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -301,6 +301,7 @@ static void prc_reset(void)
save = current.server;
memset(&current, '\0', sizeof(current));
+ current.stripcr = -1;
current.server = save;
}