mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
[coverity] multiboot.c write_bootdata_ fix memset size
the payload arg was swapped with the size arg Change-Id: I1e1ef6e842a4fd00f7d4a656438fccbe7abc429a
This commit is contained in:
parent
afba86f0f7
commit
dad01f29ff
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
static void write_bootdata_v0(struct boot_data_t *data, unsigned int boot_volume)
|
||||
{
|
||||
memset(data->payload, data->length, 0);
|
||||
memset(data->payload, 0, data->length);
|
||||
|
||||
data->_boot_volume = boot_volume;
|
||||
data->version = 0;
|
||||
|
@ -37,7 +37,7 @@ static void write_bootdata_v0(struct boot_data_t *data, unsigned int boot_volume
|
|||
|
||||
static void write_bootdata_v1(struct boot_data_t *data, unsigned int boot_volume)
|
||||
{
|
||||
memset(data->payload, data->length, 0);
|
||||
memset(data->payload, 0, data->length);
|
||||
|
||||
data->_boot_volume = 0xff;
|
||||
data->version = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue