fileio: minor read_full_stream_full() optimization
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Mar 2021 14:59:46 +0000 (15:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Mar 2021 17:55:02 +0000 (18:55 +0100)
commita60d0647480d16e41a418adc72077098a8a3a852
treef632d3f93d6bfa1e0380f2076420e767cd3209f4
parent407234203b41e0a27b3229347c1ad6b2b17e3c21
fileio: minor read_full_stream_full() optimization

If we shall read as much of a file/stream as we can, then it makes sense
to use the full malloc()ed memory, not just the part we asked for.
src/basic/fileio.c