Commit c958b5b0 c958b5b0f83b82b95f5dfe872cd87f4e6d68b026 by Sergey Poznyakoff

(_body_readline,_body_stream_size): Bugfix.

1 parent a68a5bff
...@@ -330,7 +330,8 @@ static int ...@@ -330,7 +330,8 @@ static int
330 _body_readline (stream_t stream, char *optr, size_t osize, 330 _body_readline (stream_t stream, char *optr, size_t osize,
331 off_t offset, size_t *nbytes) 331 off_t offset, size_t *nbytes)
332 { 332 {
333 message_t msg = stream_get_owner (stream); 333 body_t body = stream_get_owner (stream);
334 message_t msg = body_get_owner (body);
334 struct _mhdraft_message *mp = message_get_owner (msg); 335 struct _mhdraft_message *mp = message_get_owner (msg);
335 stream_t str; 336 stream_t str;
336 337
...@@ -341,7 +342,8 @@ _body_readline (stream_t stream, char *optr, size_t osize, ...@@ -341,7 +342,8 @@ _body_readline (stream_t stream, char *optr, size_t osize,
341 static int 342 static int
342 _body_stream_size (stream_t stream, off_t *psize) 343 _body_stream_size (stream_t stream, off_t *psize)
343 { 344 {
344 message_t msg = stream_get_owner (stream); 345 body_t body = stream_get_owner (stream);
346 message_t msg = body_get_owner (body);
345 struct _mhdraft_message *mp = message_get_owner (msg); 347 struct _mhdraft_message *mp = message_get_owner (msg);
346 348
347 if (psize) 349 if (psize)
......