aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-03-24 06:42:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-03-24 06:42:29 +0000
commit70a14c3c3229ea3b5eedd4e0f726797f80c12e7f (patch)
tree96ff07621b033b659070b3609cafa1aca2402f54
parenta0ebd4fe2d35074d934ac89e1599cee5f0ea6c81 (diff)
downloadfetchmail-70a14c3c3229ea3b5eedd4e0f726797f80c12e7f.tar.gz
fetchmail-70a14c3c3229ea3b5eedd4e0f726797f80c12e7f.tar.bz2
fetchmail-70a14c3c3229ea3b5eedd4e0f726797f80c12e7f.zip
Avoid a gotcha if we ever collect message IDs.
svn path=/trunk/; revision=2838
-rw-r--r--driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver.c b/driver.c
index a5b97c07..e9a888fa 100644
--- a/driver.c
+++ b/driver.c
@@ -726,14 +726,14 @@ static int readheaders(int sock,
resent_sender_offs = (line - msgblk.headers);
#ifdef __UNUSED__
- else if (!strncasecmp("Message-Id:", buf, 11))
+ else if (!strncasecmp("Message-Id:", line, 11))
{
if (ctl->server.uidl)
{
char id[IDLEN+1];
- buf[IDLEN+12] = 0; /* prevent stack overflow */
- sscanf(buf+12, "%s", id);
+ line[IDLEN+12] = 0; /* prevent stack overflow */
+ sscanf(line+12, "%s", id);
if (!str_find( &ctl->newsaved, num))
{
struct idlist *new = save_str(&ctl->newsaved,id,UID_SEEN);