]> git.ipfire.org Git - thirdparty/u-boot.git/commit
hashtable: fix length calculation in hexport_r
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 14 Dec 2018 09:42:51 +0000 (18:42 +0900)
committerTom Rini <trini@konsulko.com>
Sat, 15 Dec 2018 16:49:19 +0000 (11:49 -0500)
commit4bca32497c09ef53ad669dfa4c413c00321ad7ca
tree7ddb9614cc950de13d1b51c3b0cdb08d8a081d01
parent8b1312662b3b1748c3d5f8a30bc6f9ca72879c7a
hashtable: fix length calculation in hexport_r

The commit below incorrectly fixed hexport_r();
 > size = totlen + 1;
One extra byte is necessary to NULL-terminate a whole buffer, "resp."

Fixes: f1b20acb4a03 ("hashtable: Fix length calculation in hexport_r")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
lib/hashtable.c