From f37ba6f3d2422466bcade18b94ffa1a7623d025b Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 6 Feb 2019 01:43:19 -0800 Subject: [PATCH] Minor fix --- project/src/net/curl/CURLBindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/net/curl/CURLBindings.cpp b/project/src/net/curl/CURLBindings.cpp index 06639f900..8e9c91d30 100644 --- a/project/src/net/curl/CURLBindings.cpp +++ b/project/src/net/curl/CURLBindings.cpp @@ -707,7 +707,7 @@ namespace lime { ValuePointer* writeCallback = writeCallbacks[easy_handle]; Bytes* bytes = writeBytes[easy_handle]; - if (bytes->length > position) bytes->Resize (position); + if (bytes->length < position) bytes->Resize (position); memcpy ((char*)bytes->b, buffer, position); // free (buffer); // writeBuffers[easy_handle] = NULL; @@ -1051,7 +1051,7 @@ namespace lime { curlObjects[curl] = handle; writeBuffers[handle] = NULL; - writeBufferPosition[handle] = false; + writeBufferPosition[handle] = 0; writeBufferSize[handle] = 0; curl_gc_mutex.Unlock ();