gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9881: only append allocated bytes.


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9881: only append allocated bytes.
Date: Mon, 22 Dec 2008 10:45:11 -0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9881
committer: address@hidden
branch nick: rtmp
timestamp: Mon 2008-12-22 10:45:11 -0800
message:
  only append allocated bytes.
modified:
  libamf/buffer.cpp
=== modified file 'libamf/buffer.cpp'
--- a/libamf/buffer.cpp 2008-12-20 20:44:19 +0000
+++ b/libamf/buffer.cpp 2008-12-22 18:45:11 +0000
@@ -221,7 +221,7 @@
 Buffer::operator+=(Buffer &buf)
 {
 // //    GNASH_REPORT_FUNCTION;
-    append(buf.reference(), buf.size());
+    append(buf.reference(), buf.allocated());
     return *this;
 }
 
@@ -360,7 +360,7 @@
 Buffer::operator+=(boost::shared_ptr<Buffer> &buf)
 {
 //    GNASH_REPORT_FUNCTION;
-    append(buf->reference(), buf->size());
+    append(buf->reference(), buf->allocated());
     return *this;
 }
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]