[U-Boot] [PATCH 3/5] sandbox/fs: Use correct size path name buffer

Simon Glass sjg at chromium.org
Mon Oct 3 23:50:02 CEST 2016


On 1 October 2016 at 12:41, Stefan Brüns <stefan.bruens at rwth-aachen.de> wrote:
> The readdir linux manpage explicitly states (quoting POSIX.1) that
> sizeof(d_name) is not correct for determining the required size, but to
> always use strlen. Grow the buffer if needed.
>
> Signed-off-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
> ---
>  arch/sandbox/cpu/os.c | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list