diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-18 15:32:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-18 15:32:29 +0000 |
commit | 65c951ab5d7141594c23c14f51e42a42a096fef1 (patch) | |
tree | cb812799ea5376e5a5fc81c4e7a8b8b135eae23b | |
parent | 1a9f23c0bbb51de66438a3d3ee09e1c5ec0afdb0 (diff) | |
download | fetchmail-65c951ab5d7141594c23c14f51e42a42a096fef1.tar.gz fetchmail-65c951ab5d7141594c23c14f51e42a42a096fef1.tar.bz2 fetchmail-65c951ab5d7141594c23c14f51e42a42a096fef1.zip |
Correct off-by-one error in expect messages.
svn path=/trunk/; revision=1368
-rw-r--r-- | driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1685,8 +1685,8 @@ const struct method *proto; /* protocol method table */ } /* check to see if the numbers matched? */ - if (msgsizes && msglen != msgsizes[num]) - error(0, 0, "size of message %d (%d) was not what was expected (%d)", num, msglen, msgsizes[num]); + if (msgsizes && msglen != msgsizes[num-1]) + error(0, 0, "size of message %d (%d) was not what was expected (%d)", num, msglen, msgsizes[num-1]); /* end-of-message processing starts here */ if (outlevel == O_VERBOSE) |