From 8b509cf6aa3fd216e5185c307f04d4701fde4c94 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 30 Dec 1996 18:31:33 +0000 Subject: Fix from-handling bug. svn path=/trunk/; revision=706 --- driver.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/driver.c b/driver.c index ce09c8e1..9bc208c2 100644 --- a/driver.c +++ b/driver.c @@ -302,6 +302,7 @@ struct query *ctl; /* query control record */ { char buf [MSGBUFSIZE+1]; char *bufp, *headers, *fromhdr,*tohdr,*cchdr,*bcchdr,*received_for,*envto; + char *fromptr, *toptr; int n, oldlen; int inheaders,lines,sizeticker; FILE *sinkfp; @@ -324,10 +325,10 @@ struct query *ctl; /* query control record */ vtalarm(ctl->timeout); /* squeeze out all carriage returns */ - for (fromhdr = tohdr = buf; *fromhdr; fromhdr++) - if (*fromhdr != '\r' && *fromhdr != '\n') - *tohdr++ = *fromhdr; - *tohdr = '\0'; + for (fromptr = toptr = buf; *fromptr; fromptr++) + if (*fromptr != '\r' && *fromptr != '\n') + *toptr++ = *fromptr; + *toptr = '\0'; /* write the message size dots */ if (n > 0) -- cgit v1.2.3