summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-03-14 14:44:52 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-03-14 14:44:52 +0000
commitc958b5b0f83b82b95f5dfe872cd87f4e6d68b026 (patch)
treecd14826bef0809046fc8b72b50fce5c2e71da538
parenta68a5bff55a06e18fa17d42acaf9f16e521a0d2f (diff)
downloadmailutils-c958b5b0f83b82b95f5dfe872cd87f4e6d68b026.tar.gz
mailutils-c958b5b0f83b82b95f5dfe872cd87f4e6d68b026.tar.bz2
(_body_readline,_body_stream_size): Bugfix.
-rw-r--r--mh/mh_stream.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mh/mh_stream.c b/mh/mh_stream.c
index 195e94cf8..d1641db0c 100644
--- a/mh/mh_stream.c
+++ b/mh/mh_stream.c
@@ -330,7 +330,8 @@ static int
_body_readline (stream_t stream, char *optr, size_t osize,
off_t offset, size_t *nbytes)
{
- message_t msg = stream_get_owner (stream);
+ body_t body = stream_get_owner (stream);
+ message_t msg = body_get_owner (body);
struct _mhdraft_message *mp = message_get_owner (msg);
stream_t str;
@@ -341,7 +342,8 @@ _body_readline (stream_t stream, char *optr, size_t osize,
static int
_body_stream_size (stream_t stream, off_t *psize)
{
- message_t msg = stream_get_owner (stream);
+ body_t body = stream_get_owner (stream);
+ message_t msg = body_get_owner (body);
struct _mhdraft_message *mp = message_get_owner (msg);
if (psize)

Return to:

Send suggestions and report system problems to the System administrator.