]> git.saurik.com Git - apt.git/commit
simple_buffer::write: Use free() instead of maxsize - size()
authorJulian Andres Klode <jak@debian.org>
Mon, 1 Feb 2016 15:25:03 +0000 (16:25 +0100)
committerJulian Andres Klode <jak@debian.org>
Mon, 1 Feb 2016 15:25:03 +0000 (16:25 +0100)
commit47fcfff8a50caebe3cd1f2ee19875a2ca8bbeadc
treeb02d33322b569170674cf4481d9aa994974c887e
parent5025879e3fdd705bb0607ff8f51a680749c5972a
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
apt-pkg/contrib/fileutl.cc