diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-03-17 18:44:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-03-17 18:44:51 +0100 |
commit | be81e45c748b9cd3a3ebe6995d84932d7ec139b1 (patch) | |
tree | ffca7db8bbd926ac939819acf60d0d5fa6911a51 /src/shared/discover-image.c | |
parent | tree-wide: use read_full_virtual_file() where appropriate (diff) | |
download | systemd-be81e45c748b9cd3a3ebe6995d84932d7ec139b1.tar.xz systemd-be81e45c748b9cd3a3ebe6995d84932d7ec139b1.zip |
systemctl: pecify read_full_file() size argument as NULL
If it is specified as NULL read_full_file() assumes the caller wants a C
string, and it looks for embedded NUL bytes to ensure that works. Given
we don#t actually use the size argument here, let's drop it.
(in one case the size argument is used, but not for actually processing
the full returned data, but just as a shortcut to compare things with
the original string. Let's drop use of that there, too given the risk of
embedded NUL bytes in the data read.)
Diffstat (limited to 'src/shared/discover-image.c')
0 files changed, 0 insertions, 0 deletions