From 70a14c3c3229ea3b5eedd4e0f726797f80c12e7f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 24 Mar 2000 06:42:29 +0000 Subject: Avoid a gotcha if we ever collect message IDs. svn path=/trunk/; revision=2838 --- driver.c | 6 +++--- 1 file 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); -- cgit v1.2.3