aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--uid.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 3e63c249..32eeac29 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,8 @@ bugs --
* Various error-logging fixes by Dave Bodenstab.
+* Fix parsing bug that broke UIDL-processing code.
+
------------------------------------------------------------------------------
fetchmail-3.6 (Mon Feb 17 00:19:55 EST 1997)
diff --git a/uid.c b/uid.c
index d7179973..a0ea4a2e 100644
--- a/uid.c
+++ b/uid.c
@@ -80,7 +80,7 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile)
while (fgets(buf, POPBUFSIZE, tmpfp) != (char *)NULL)
{
/* possible lossage here with very old versions of sscanf(3)... */
- if ((st = sscanf(buf, "%[^@]@%s %s\n", host, user, id)) == 3)
+ if ((st = sscanf(buf, "%[^@]@%s %s\n", user, host, id)) == 3)
{
for (ctl = hostlist; ctl; ctl = ctl->next)
{