Re: [PATCH 1/2] Fix gcc warning for gptsync memset() usage.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Un-transpose the transposed arguments.
> ---
>  gptsync/gptsync.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/gptsync/gptsync.c b/gptsync/gptsync.c
> index 7074bb8..3ad26bf 100644
> --- a/gptsync/gptsync.c
> +++ b/gptsync/gptsync.c
> @@ -145,7 +145,7 @@ static UINTN write_mbr(VOID)
>      }
>      if (!have_bootcode) {
>          // no boot code found in the MBR, add the syslinux MBR code
> -        SetMem(sector, MBR_BOOTCODE_SIZE, 0);
> +        SetMem(sector, 0, MBR_BOOTCODE_SIZE);
>          CopyMem(sector, syslinux_mbr, SYSLINUX_MBR_SIZE);
>      }

Commit it!

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux