summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-05-23 12:48:22 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-05-23 12:48:22 +0000
commit6ed3393f0602626b2b15faa3e4f9181568053ee0 (patch)
treeddc31c915c559e86a71b848838c7b4536e99bcd6
parent0bdd8432fab21cc1c89cfe4cf60791ca4ed87fd1 (diff)
downloadmailutils-6ed3393f0602626b2b15faa3e4f9181568053ee0.tar.gz
mailutils-6ed3393f0602626b2b15faa3e4f9181568053ee0.tar.bz2
(trans_read): Bugfix. Do not break the
loop if there are characters left in the buffer.
-rw-r--r--mailbox/filter_trans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailbox/filter_trans.c b/mailbox/filter_trans.c
index 8fc8bb455..28079cc7f 100644
--- a/mailbox/filter_trans.c
+++ b/mailbox/filter_trans.c
@@ -147,7 +147,7 @@ trans_read (mu_filter_t filter, char *optr, size_t osize, mu_off_t offset,
}
ts->s_offset = i;
}
- if (wbytes == 0 && ts->s_offset == 0)
+ if (wbytes == 0 && ts->w_whd - ts->w_rhd == 0)
break;
}
return ret;

Return to:

Send suggestions and report system problems to the System administrator.