I found a bug in zero_copy_stream_impl.cc.  Here's the patch
221c221,222
<     int bytes = Read(junk, min(count,
implicit_cast<int>(sizeof(junk))));
---
>     int bytes = Read(junk, min(count - skipped,
>                                implicit_cast<int>(sizeof(junk))));

Frank

PS. Please let me know if this is the right way of sending in patches.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to