diff options
author | Pino Toscano <pino@debian.org> | 2015-12-19 12:00:43 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-12-19 12:52:04 +0100 |
commit | 0c93e388d417ab03f2857903bb5791f4312cdbd0 (patch) | |
tree | 945b9720fc549c0fc6f4390a55116f9aafde7ef3 /methods/rfc2553emu.h | |
parent | dbbe1e6393dab381db0f48b2a645babdddb14eca (diff) |
CopyFile: fix BufSize to a sane value
Commit e977b8b9234ac5db32f2f0ad7e183139b988340d tries to make BufSize
calculated based on the size of the buffer; the problem is that
std::unique_ptr::size() returns a pointer to the data, so sizeof()
equals to the size of a pointer (later divided by sizeof(char), which
is 1). The result is that the CopyFile copies in chunks of 8 bytes,
which is not exactly ideal...
As solution, declare BufSize in advance, and use its value to allocate
the Buf array.
Closes: #808381
Diffstat (limited to 'methods/rfc2553emu.h')
0 files changed, 0 insertions, 0 deletions