aboutsummaryrefslogtreecommitdiff
path: root/src/wrapper
diff options
context:
space:
mode:
authorshirleyquirk2020-08-04 23:53:21 +0000
committerGitHub2020-08-04 23:53:21 +0000
commit731f8d7692bfe08f5fd5890a98797f9b1b8d065d (patch)
tree512a18c53d4e7e6878ea134a2a307e3caec2278d /src/wrapper
parent29e12415d4bae7a08fa9f3024d809b5a3be76ba1 (diff)
parentb2321b0ded6f4a9803daf9dbcbd88d56321a9305 (diff)
Merge branch 'lc_useVersion' into collect
Diffstat (limited to 'src/wrapper')
-rw-r--r--src/wrapper/curl.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wrapper/curl.nim b/src/wrapper/curl.nim
index 9abb341..149f0a3 100644
--- a/src/wrapper/curl.nim
+++ b/src/wrapper/curl.nim
@@ -60,6 +60,7 @@ proc escape*(instance: ref CurlInstance, s: string): string =
proc curlWriteMemory(mem: array[csize_t.high, char], size: csize_t, nmemb: csize_t,
userdata: ref CurlInstance): csize_t {.cdecl.} =
+
let total = size * nmemb
if total > 0:
userData.data &= mem[0 .. total - 1]