(message_stream_size): Bugfix.
Showing
1 changed file
with
6 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment