diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-19 16:16:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-19 16:16:03 +0000 |
commit | a9f73834e9932f46a4aac4a1b09cdd78b0d7ae82 (patch) | |
tree | bb53280bd9ec9c9b43b4d1d3470bfc9a3532c8a1 /rfc822.c | |
parent | 9c429358cf6723ae869e9578c89e6c74efdddd77 (diff) | |
download | fetchmail-a9f73834e9932f46a4aac4a1b09cdd78b0d7ae82.tar.gz fetchmail-a9f73834e9932f46a4aac4a1b09cdd78b0d7ae82.tar.bz2 fetchmail-a9f73834e9932f46a4aac4a1b09cdd78b0d7ae82.zip |
Avoid core dump in rewrite logic.
svn path=/trunk/; revision=787
Diffstat (limited to 'rfc822.c')
-rw-r--r-- | rfc822.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -48,7 +48,7 @@ const char *host; /* server hostname */ else if (*from == ')') --parendepth; - if (!parendepth) + if (!parendepth && !has_host_part) switch (state) { case 0: /* before header colon */ @@ -65,8 +65,10 @@ const char *host; /* server hostname */ { while (isspace(*from)) --from; + from++; while (isspace(*buf)) --buf; + buf++; strcpy(buf, "@"); strcat(buf, host); buf += strlen(buf); |