CURLcode DownloadFileDataWithSize( CURL* curlHandle, Dali::Vector<uint8_t>& dataBuffer, size_t dataSize )
{
CURLcode result( CURLE_OK );
- dataBuffer.Resize( dataSize+4);
+ dataBuffer.Resize( dataSize );
// create
- Dali::Internal::Platform::FileCloser fileCloser( static_cast<void*>(&dataBuffer[0]), dataSize+4, "wb" );
+ Dali::Internal::Platform::FileCloser fileCloser( static_cast<void*>(&dataBuffer[0]), dataSize, "wb" );
FILE* dataBufferFilePointer = fileCloser.GetFile();
if( NULL != dataBufferFilePointer )
{