Fix for mbox read/write consistency.
* libproto/mbox/mbox.c (append_message_to_stream): Add \n after each message (scanner relies on this to determine message sizes).
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -1087,6 +1087,8 @@ append_message_to_stream (mu_stream_t ostr, mu_message_t msg, | ... | @@ -1087,6 +1087,8 @@ append_message_to_stream (mu_stream_t ostr, mu_message_t msg, |
1087 | } | 1087 | } |
1088 | status = mu_stream_copy (ostr, istr, 0); | 1088 | status = mu_stream_copy (ostr, istr, 0); |
1089 | mu_stream_destroy (&istr); | 1089 | mu_stream_destroy (&istr); |
1090 | if (status == 0) | ||
1091 | status = mu_stream_write (ostr, "\n", 1, NULL); | ||
1090 | return status; | 1092 | return status; |
1091 | } | 1093 | } |
1092 | 1094 | ... | ... |
-
Please register or sign in to post a comment