summaryrefslogtreecommitdiff
path: root/mh/mh_stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'mh/mh_stream.c')
-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.