make sure that the code matches the documentation
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 01 May 2007 11:58:19 +0200
changeset 464 687e2b7b5f11
parent 463 c2082308e01a
child 465 7f620ea278f4
make sure that the code matches the documentation
src/common/packet.h
--- a/src/common/packet.h	Tue May 01 11:54:21 2007 +0200
+++ b/src/common/packet.h	Tue May 01 11:58:19 2007 +0200
@@ -299,9 +299,8 @@
                  "Must pass Trailer subclass to Packet::AddTrailer");
   uint32_t size = trailer.GetSize ();
   m_buffer.AddAtEnd (size);
-  Buffer::Iterator start = m_buffer.End ();
-  start.Prev (size);
-  trailer.Serialize (start);
+  Buffer::Iterator end = m_buffer.End ();
+  trailer.Serialize (end);
 }
 template <typename T>
 uint32_t