File buffer is slightly too small, so the last byte doesn't get written to.
Extending the buffer size enables the correct data to be written.
Change-Id: Ieefe7580657cd516712c8fc912dbfa512019c1f7
Signed-off-by: David Steele <david.steele@samsung.com>
CURLcode DownloadFileDataWithSize( CURL* curlHandle, Dali::Vector<uint8_t>& dataBuffer, size_t dataSize )
{
CURLcode result( CURLE_OK );
- dataBuffer.Resize( dataSize );
+ dataBuffer.Resize( dataSize+4);
// create
- Dali::Internal::Platform::FileCloser fileCloser( static_cast<void*>(&dataBuffer[0]), dataSize, "wb" );
+ Dali::Internal::Platform::FileCloser fileCloser( static_cast<void*>(&dataBuffer[0]), dataSize+4, "wb" );
FILE* dataBufferFilePointer = fileCloser.GetFile();
if( NULL != dataBufferFilePointer )
{