rom_bsl: fix incorrect use of sizeof().

This commit is contained in:
Daniel Beer 2019-03-10 15:19:41 +13:00
parent 989038d3b3
commit 5c5fec9acd
1 changed files with 1 additions and 2 deletions

View File

@ -416,8 +416,7 @@ static int unlock_device(struct rom_bsl_device *dev,
printc_dbg("Sending password...\n");
if (rom_bsl_xfer(dev, CMD_RX_PASSWORD, 0,
password, sizeof(password)) < 0) {
if (rom_bsl_xfer(dev, CMD_RX_PASSWORD, 0, password, 32) < 0) {
printc_err("rom_bsl: RX password failed\n");
return -1;
}