wok-next rev 18677
syslinux/c32box: fix custom initrd >= 2k
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 06 17:41:24 2015 +0100 (2015-12-06) |
parents | 3fa45a5a20c6 |
children | 95e835ab9f4c |
files | syslinux/stuff/extra/md5sum.c |
line diff
1.1 --- a/syslinux/stuff/extra/md5sum.c Sun Dec 06 12:45:22 2015 +0100 1.2 +++ b/syslinux/stuff/extra/md5sum.c Sun Dec 06 17:41:24 2015 +0100 1.3 @@ -778,7 +778,7 @@ 1.4 if (len == 0) 1.5 break; 1.6 free(custom_buffer); 1.7 - got_config += diskinfo.bps; 1.8 + got_config += 2048 / diskinfo.bps; 1.9 custom_initrdbase = custom_buffer = 1.10 disk_read_sectors(&diskinfo, got_config, 2048 / diskinfo.bps); 1.11 }