Commit b4150b59 authored by Peter Hurley's avatar Peter Hurley Committed by David Gibson
Browse files

libfdt: Add fdt_path_offset_namelen()



Properties may contain path names which are not NUL-terminated.
For example, the 'stdout-path' property allows the form 'path:options',
where the ':' character terminates the path specifier.

Allow these path names to be used in-place for path descending;
add fdt_path_offset_namelen(), which limits the path name to 'namelen'
characters.

Reimplement fdt_path_offset() as a trivial wrapper.

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
parent a4b093f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment