From 285f446205b68bc499a4c7a5fb0fb9b8501b34b7 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Mon, 9 Feb 2009 15:18:17 -1000 Subject: Fix gcc warning for gptsync memset() usage. Un-transpose the transposed arguments. --- gptsync/gptsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gptsync') diff --git a/gptsync/gptsync.c b/gptsync/gptsync.c index 7074bb829..3ad26bfd5 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); } -- cgit