Revert "mime: fix the binary encoder to handle large data properly"

This reverts commit b2caaa0681.
This commit is contained in:
Daniel Stenberg 2020-03-02 07:42:48 +01:00
parent ff3b1f4860
commit e002f6c0cb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 4 additions and 423 deletions

View file

@ -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;