aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-06-16 21:01:11 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-06-16 21:01:11 -0700
commit7798fdc99fc5f16a8a1f3f94bb2428908634d5a6 (patch)
tree53ba6f93eb26994f1de9ed4cfed4ee38bee1032b
parent44e01ff5852eae227e84b7ac3b4d7a7bf8574c3c (diff)
downloadsyslinux-7798fdc99fc5f16a8a1f3f94bb2428908634d5a6.tar.gz
syslinux-7798fdc99fc5f16a8a1f3f94bb2428908634d5a6.tar.xz
syslinux-7798fdc99fc5f16a8a1f3f94bb2428908634d5a6.zip
pxelinux-options: Fix data corruption bugsyslinux-6.03-pre17
Fix bug where the data would invariably be incorrectly written. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rwxr-xr-xutils/pxelinux-options4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/pxelinux-options b/utils/pxelinux-options
index dfd98cf1..073eee57 100755
--- a/utils/pxelinux-options
+++ b/utils/pxelinux-options
@@ -226,8 +226,6 @@ sub read_optsets($)
return undef unless (read($file, $data, 16) == 16);
($blen, $alen, $bufsize, $junk) = unpack("VVVV", $data);
- printf STDERR "EFI: offset = 0x%x, blen = %d, alen = %d, bufsize = %d\n", $hdroffset, $blen, $alen, $bufsize;
-
$patch_start = $boff = $hdroffset + 32;
$aoff = $boff + $blen;
@@ -264,7 +262,7 @@ sub read_optsets($)
return (\%hdr, $bdata, $adata);
}
-sub write_optsets($$$@)
+sub write_optsets($$@)
{
my($file, $hdr, $bdata, $adata) = @_;
my $boff = 0;