Commit 012b6c7f 012b6c7facbd39596a7bf9e8ac61c732c87a236a by Sergey Poznyakoff

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).
1 parent 352c5e92
...@@ -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
......