summaryrefslogtreecommitdiffstats
path: root/libinstaller
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-19 12:48:11 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-19 12:48:11 -0700
commitc9ad266f64f9ee81a859bdf70c1190ee0cc1bc19 (patch)
treed4ec1a585e8dcaeee8f73471f8c70db8501f1672 /libinstaller
parentdba2e3126331ba1690fba06ad18be9acc66c5978 (diff)
downloadsyslinux-c9ad266f64f9ee81a859bdf70c1190ee0cc1bc19.tar.gz
syslinux-c9ad266f64f9ee81a859bdf70c1190ee0cc1bc19.tar.xz
syslinux-c9ad266f64f9ee81a859bdf70c1190ee0cc1bc19.zip
libinstaller: "nsect" is the size of ldlinux.sys, not the total
"nsect" here is the size of ldlinux.sys, not the total structure; therefore it should not be decremented. Again, all this should really be unified. With this patch the FAT derivatives boot with the current code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'libinstaller')
-rw-r--r--libinstaller/syslxmod.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libinstaller/syslxmod.c b/libinstaller/syslxmod.c
index d1cc13bf..1766de2b 100644
--- a/libinstaller/syslxmod.c
+++ b/libinstaller/syslxmod.c
@@ -155,7 +155,6 @@ int syslinux_patch(const uint32_t *sectors, int nsectors,
/* First sector need pointer in boot sector */
set_32(&sbs->NextSector, *sectors++);
- nsect--;
/* Search for LDLINUX_MAGIC to find the patch area */
for (wp = (uint32_t *)syslinux_ldlinux; get_32(wp) != LDLINUX_MAGIC; wp++)