commit | 7c6bf3080a20077f1da49bc383297ac33bce35f8 | [log] [tgz] |
---|---|---|
author | Hung-Te Lin <hungte@chromium.org> | Thu Sep 24 15:54:39 2020 +0800 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Oct 05 12:26:04 2020 +0000 |
tree | 089b5f738bba8822d09e9d9d819e080c67e89416 | |
parent | a5c13bc047d656545d8f9ff345d49e636f678311 [diff] |
lib21: always append '\0' in vb2_readfile For utilities reading text file, it is easier to process as ASCIIZ input if vb2_readfile can always return a buffer ends with '\0' so we don't need to pass and check the size. BUG=None TEST=make clean && make runtests BRANCH=None Signed-off-by: Hung-Te Lin <hungte@chromium.org> Change-Id: Ib6294969fb325b9b7899e6295fb1817ad91a9952 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2426092 Reviewed-by: Joel Kitching <kitching@chromium.org>