Revert "[Tizen] Workaround for remote image download" 55/143955/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 14 Aug 2017 06:10:51 +0000 (15:10 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 14 Aug 2017 06:11:08 +0000 (15:11 +0900)
This reverts commit 9a6ecec6a4396eafee5b5a80909a0b2ff3b33f79.

Change-Id: I58458f82164e81b2619393a794fa27c357f37fe5

platform-abstractions/tizen/resource-loader/network/file-download.cpp

index f4d654b..ad50249 100755 (executable)
@@ -100,10 +100,10 @@ size_t ChunkLoader(char *ptr, size_t size, size_t nmemb, void *userdata)
 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 )
   {