Commit 35840f9c 35840f9c2dcab6cc749c3aba864d698bf8d03942 by Sergey Poznyakoff

(message_stream_size): Bugfix.

1 parent ca943289
...@@ -933,7 +933,12 @@ static int ...@@ -933,7 +933,12 @@ static int
933 message_stream_size (mu_stream_t stream, mu_off_t *psize) 933 message_stream_size (mu_stream_t stream, mu_off_t *psize)
934 { 934 {
935 mu_message_t msg = mu_stream_get_owner (stream); 935 mu_message_t msg = mu_stream_get_owner (stream);
936 return mu_message_size (msg, (size_t*) psize); 936 size_t size;
937 int rc = mu_message_size (msg, &size); /* FIXME: should it get mu_off_t as
938 its 2nd argument */
939 if (rc == 0)
940 *psize = size;
941 return rc;
937 } 942 }
938 943
939 static int 944 static int
......