summaryrefslogtreecommitdiffstats
path: root/gptsync
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-02-09 15:18:17 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-02-09 15:18:17 -1000
commit285f446205b68bc499a4c7a5fb0fb9b8501b34b7 (patch)
tree67aba2a09f09535b43954fb00ce829041573b1f8 /gptsync
parent566d202cce04f590436a32867ef279b85c42be06 (diff)
downloadanaconda-285f446205b68bc499a4c7a5fb0fb9b8501b34b7.tar.gz
anaconda-285f446205b68bc499a4c7a5fb0fb9b8501b34b7.tar.xz
anaconda-285f446205b68bc499a4c7a5fb0fb9b8501b34b7.zip
Fix gcc warning for gptsync memset() usage.
Un-transpose the transposed arguments.
Diffstat (limited to 'gptsync')
-rw-r--r--gptsync/gptsync.c2
1 files changed, 1 insertions, 1 deletions
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);
}