summaryrefslogtreecommitdiffstats
path: root/lib/fdt_wip.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-11-22 09:47:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-12-13 23:19:38 +0100
commitf39cad003e197ec0de07131bf9c99aefc4c2a783 (patch)
tree37ca7ecc088243cb3bdc772e39c4597f58ec3e86 /lib/fdt_wip.c
parent532fba0ef7bfb5ee844f10e771255d80cebcc2dc (diff)
downloadbarebox-f39cad003e197ec0de07131bf9c99aefc4c2a783.tar.gz
barebox-f39cad003e197ec0de07131bf9c99aefc4c2a783.tar.xz
libfile: null-terminate read_file of wchar_t buffer
read_file always nul-terminates the buffer, which is useful when slurping ASCII text into a variable. This doesn't work as well for UCS-2, because we need two aligned nuls there. Fix this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211122084732.2597109-21-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/fdt_wip.c')
0 files changed, 0 insertions, 0 deletions