util/os_file: resize buffer to what was actually needed
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 1 May 2019 10:51:01 +0000 (11:51 +0100)
committerEric Engestrom <eric@engestrom.ch>
Thu, 20 Jun 2019 21:49:30 +0000 (21:49 +0000)
commit955c63d3643f30d7db0c5d16e06a5eda4f62f889
tree29951517a9eb4cb4d5efaffb1f1ef4e9606b8cca
parent2743e34f20f6c45094c88ba80d90fdf6bb010903
util/os_file: resize buffer to what was actually needed

Fixes: 316964709e21286c2af5 "util: add os_read_file() helper"
Reported-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/util/os_file.c