mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-20 18:05:21 -04:00
[syslinux] fix a typo that reintroduced a possible crash
*a10a207790
reintroduced the crash that was fixed inad68ccfac9
due to the missing semicolon. * Also fix a minor output message issue * Closes #752
This commit is contained in:
parent
0abd745a87
commit
1a24e5bbd7
5 changed files with 10 additions and 8 deletions
|
@ -125,7 +125,7 @@ int syslinux_patch(const sector_t *sectp, int nsectors,
|
|||
dw = (boot_image_len - sizeof(struct patch_area)) >> 2;
|
||||
for (i = 0, wp = (const uint32_t _slimg *)boot_image;
|
||||
(i <= dw) && ((get_32_sl(wp) != LDLINUX_MAGIC));
|
||||
i++, wp++)
|
||||
i++, wp++);
|
||||
if (i > dw) /* Not found */
|
||||
return -1;
|
||||
patcharea = (struct patch_area _slimg *)wp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue