]> git.dujemihanovic.xyz Git - u-boot.git/commit
command: Allocate history buffer using calloc()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 2 Dec 2023 20:52:30 +0000 (21:52 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 20 Dec 2023 15:46:54 +0000 (10:46 -0500)
commit400cb2a850546e8cc9246cf97f0902ffe57867ab
tree4418f6d17faf5c99111b67786097a952e05f2981
parent921f63e5723880bbbaf65429564e5638b7bbd002
command: Allocate history buffer using calloc()

The history buffer is currently a static array which can be some
10-40 kiB depending on configuration, and so adds considerably to
the U-Boot binary size. Allocate it dynamically instead to reduce
the U-Boot binary size.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
common/cli_readline.c