diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-06-05 20:35:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-06-05 20:35:13 +0000 |
commit | e524c7847c4c0b901d10e00512568f467567b4c7 (patch) | |
tree | ceab88d0fdf828491a236b341b19457082716819 /driver.c | |
parent | 1529aa80917fd187250f7126d0f8ef0770830506 (diff) | |
download | fetchmail-e524c7847c4c0b901d10e00512568f467567b4c7.tar.gz fetchmail-e524c7847c4c0b901d10e00512568f467567b4c7.tar.bz2 fetchmail-e524c7847c4c0b901d10e00512568f467567b4c7.zip |
Another step towards correct handling of bodiless messages.
svn path=/trunk/; revision=1066
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -454,14 +454,13 @@ char *realname; /* real name of host */ sizeticker = 0; has_nuls = FALSE; return_path[0] = '\0'; - remaining = len; olderrs = ctl->errcount; /* read message headers */ headers = received_for = NULL; from_offs = to_offs = cc_offs = bcc_offs = ctt_offs = env_offs = -1; oldlen = 0; - for (;;) + for (remaining = len; remaining > 0; remaining -= linelen) { char *line; @@ -509,8 +508,6 @@ char *realname; /* real name of host */ if (linelen != strlen(line)) has_nuls = TRUE; - remaining -= linelen; - /* check for end of headers; don't save terminating line */ if (line[0] == '\r' && line[1] == '\n') { |