[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9795: only dump the allocated bytes,
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9795: only dump the allocated bytes, the rest is junk. |
Date: |
Fri, 28 Nov 2008 18:07:40 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9795
committer: address@hidden
branch nick: rtmp
timestamp: Fri 2008-11-28 18:07:40 -0700
message:
only dump the allocated bytes, the rest is junk.
modified:
libamf/buffer.cpp
=== modified file 'libamf/buffer.cpp'
--- a/libamf/buffer.cpp 2008-11-26 17:10:41 +0000
+++ b/libamf/buffer.cpp 2008-11-29 01:07:40 +0000
@@ -691,8 +691,9 @@
{
os << "Buffer is " << _nbytes << " bytes at " << (void *)_data.get() <<
endl;
if (_nbytes < 0xffff) {
- os << gnash::hexify((unsigned char *)_data.get(), _nbytes, false) <<
endl;
- os << gnash::hexify((unsigned char *)_data.get(), _nbytes, true) <<
endl;
+ const size_t bytes = _seekptr - _data.get();
+ os << gnash::hexify((unsigned char *)_data.get(), bytes, false) << endl;
+ os << gnash::hexify((unsigned char *)_data.get(), bytes, true) << endl;
} else {
os << "ERROR: Buffer size out of range!" << endl;
abort();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9795: only dump the allocated bytes, the rest is junk.,
rob <=