- CefBytesWriter::GetDataString() does not properly size the returned string.

Issue #4, Fix by: vridosh

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@7 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2009-01-21 15:03:31 +00:00
parent 8dab71f659
commit 299030afe0
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ int CefBytesWriter::Flush()
std::string CefBytesWriter::GetDataString()
{
Lock();
std::string str((char*)data_, datasize_);
std::string str((char*)data_, offset_);
Unlock();
return str;
}