diff options
author | Julian Andres Klode <jak@debian.org> | 2016-02-01 16:25:03 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-02-01 16:25:03 +0100 |
commit | 47fcfff8a50caebe3cd1f2ee19875a2ca8bbeadc (patch) | |
tree | b02d33322b569170674cf4481d9aa994974c887e /apt-pkg/contrib/hashsum.cc | |
parent | 5025879e3fdd705bb0607ff8f51a680749c5972a (diff) |
simple_buffer::write: Use free() instead of maxsize - size()
We want to check whether the amount of free space is smaller
than the requested write size. Checking maxsize - size() is
incorrect for bufferstart >= 0, as size() = end - start.
Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg/contrib/hashsum.cc')
0 files changed, 0 insertions, 0 deletions