diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-03-24 06:42:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-03-24 06:42:29 +0000 |
commit | 70a14c3c3229ea3b5eedd4e0f726797f80c12e7f (patch) | |
tree | 96ff07621b033b659070b3609cafa1aca2402f54 /driver.c | |
parent | a0ebd4fe2d35074d934ac89e1599cee5f0ea6c81 (diff) | |
download | fetchmail-70a14c3c3229ea3b5eedd4e0f726797f80c12e7f.tar.gz fetchmail-70a14c3c3229ea3b5eedd4e0f726797f80c12e7f.tar.bz2 fetchmail-70a14c3c3229ea3b5eedd4e0f726797f80c12e7f.zip |
Avoid a gotcha if we ever collect message IDs.
svn path=/trunk/; revision=2838
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |