libdpkg: Mark file_slurp_fd() NUL-terminate the varbuf
commit9dff672909dd6e294c5ac199c3c48bf44c823e3a
authorGuillem Jover <guillem@debian.org>
Sat, 4 May 2024 00:27:44 +0000 (4 02:27 +0200)
committerGuillem Jover <guillem@debian.org>
Mon, 6 May 2024 08:04:46 +0000 (6 10:04 +0200)
tree5f8410590250a60214fbea1b30a60010e097b6be
parente146a68a375453db89bc3b5e816d9405e5fd5634
libdpkg: Mark file_slurp_fd() NUL-terminate the varbuf

While this is not a concern with the current users of these functions,
it's still better to NUL-terminate the resulting varbuf, in case a
caller will try to use it as a C string directly.
lib/dpkg/file.c