diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-30 18:31:33 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-30 18:31:33 +0000 |
commit | 8b509cf6aa3fd216e5185c307f04d4701fde4c94 (patch) | |
tree | 6bf49eba5dcb4f2c384262a2052b8a5311b8b670 /driver.c | |
parent | 28b12aba4ad1b56c1acfea4e20c1a81b91221d45 (diff) | |
download | fetchmail-8b509cf6aa3fd216e5185c307f04d4701fde4c94.tar.gz fetchmail-8b509cf6aa3fd216e5185c307f04d4701fde4c94.tar.bz2 fetchmail-8b509cf6aa3fd216e5185c307f04d4701fde4c94.zip |
Fix from-handling bug.
svn path=/trunk/; revision=706
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |