sandbox: swap_case: Increase number of base address regs
authorSimon Glass <sjg@chromium.org>
Tue, 12 Jun 2018 06:05:02 +0000 (00:05 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 Jun 2018 11:31:44 +0000 (07:31 -0400)
commitfe996ec0663703846d8ce11446c07b6ae0bf9077
tree0e2729586fa1c6536b84fd8439a196a7057c1014
parentfb95283931011aef78d885f2799ad9d7367f4e48
sandbox: swap_case: Increase number of base address regs

At present the code overruns the bar[] array. Fix this.

At the same time, drop the leading / from the "/spl" path so that we can
run U-Boot SPL with:

   spl/u-boot-spl

rather than requiring:

   /path/to/spl/u-boot-spl

Reported-by: Coverity (CID: 131199)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/misc/swap_case.c