summaryrefslogtreecommitdiff
path: root/lib/mime.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-02 07:42:48 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-02 07:42:48 +0100
commite002f6c0cbec7f87fd7ed478cc463bbb9a33b085 (patch)
tree1eaf566c0f08e69ad07d27534da75e0dc0b9ed08 /lib/mime.c
parentff3b1f48605dbe0c051415e1d0e1da2b9c44275c (diff)
downloadcurl-e002f6c0cbec7f87fd7ed478cc463bbb9a33b085.tar.gz
Revert "mime: fix the binary encoder to handle large data properly"
This reverts commit b2caaa0681f329eed317ffb6ae6927f4a539f0c1.
Diffstat (limited to 'lib/mime.c')
-rw-r--r--lib/mime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mime.c b/lib/mime.c
index b72732310..7d754e63b 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -366,7 +366,7 @@ static size_t encoder_nop_read(char *buffer, size_t size, bool ateof,
size = insize;
if(size)
- memcpy(buffer, st->buf + st->bufbeg, size);
+ memcpy(buffer, st->buf, size);
st->bufbeg += size;
return size;