diff options
author | hpa <hpa> | 2004-12-16 07:29:43 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-12-16 07:29:43 +0000 |
commit | af2500694a28ed6e36cf21b81ea054c013b1ed41 (patch) | |
tree | b8e20a9a71994f23555a7f8de9d60a46ef85948f /syslxmod.c | |
parent | 4c5fee753ea1302effcaa01b807d3467fa029db6 (diff) | |
download | syslinux-af2500694a28ed6e36cf21b81ea054c013b1ed41.tar.gz |
Fix some cases of bad pointer arithmetric
Diffstat (limited to 'syslxmod.c')
-rw-r--r-- | syslxmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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! */ |