libfdt: Remove superfluous NUL character from overlay symbols
authorMarcus Comstedt <marcus@mc.pp.se>
Fri, 22 May 2020 16:41:36 +0000 (18:41 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Jun 2020 02:52:11 +0000 (20:52 -0600)
commit42a768c6892ba3bdedea75a430dff234fddffc8d
tree71212c3bf1a3566375fea9c5d50c1862fe121e1c
parent2f8f5e23539819dcf9c995d7a829dbac67d0ba27
libfdt: Remove superfluous NUL character from overlay symbols

The symbol path already ends with a NUL character (something which is
actually checked by the code) and this NUL is included in
rel_path_len, so there is no need to add a second one.

This change fixes incorrect display in "fdt list /__symbols" after
applying an overlay with symbols.

Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
scripts/dtc/libfdt/fdt_overlay.c