summaryrefslogtreecommitdiff
path: root/syslxmod.c
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-16 07:29:43 +0000
committerhpa <hpa>2004-12-16 07:29:43 +0000
commitaf2500694a28ed6e36cf21b81ea054c013b1ed41 (patch)
treeb8e20a9a71994f23555a7f8de9d60a46ef85948f /syslxmod.c
parent4c5fee753ea1302effcaa01b807d3467fa029db6 (diff)
downloadsyslinux-af2500694a28ed6e36cf21b81ea054c013b1ed41.tar.gz
Fix some cases of bad pointer arithmetric
Diffstat (limited to 'syslxmod.c')
-rw-r--r--syslxmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syslxmod.c b/syslxmod.c
index a429c2b2..9a1087e9 100644
--- a/syslxmod.c
+++ b/syslxmod.c
@@ -206,7 +206,7 @@ int syslinux_patch(const uint32_t *sectors, int nsectors)
/* Search for LDLINUX_MAGIC to find the patch area */
for ( p = syslinux_ldlinux ; get_32(p) != LDLINUX_MAGIC ; p += 4 );
- patcharea = p+4;
+ patcharea = p+8;
/* Set up the totals */
dw = syslinux_ldlinux_len >> 2; /* COMPLETE dwords! */