]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox/fs: Use correct size path name buffer
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sat, 1 Oct 2016 18:41:40 +0000 (20:41 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Oct 2016 16:17:07 +0000 (10:17 -0600)
commitf189899c2f9ae2266ea4814cf14f138cc47e319f
treef2cad4a04e2c8c7970bb524f56ed771950e5b599
parentce2ec19c56d646656e64a4b8e0279820337f089e
sandbox/fs: Use correct size path name buffer

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@rwth-aachen.de>
Acked-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c