diff options
Diffstat (limited to 'src/wrapper/curl.nim')
-rw-r--r-- | src/wrapper/curl.nim | 1 |
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] |